Commit graph

22 commits

Author SHA1 Message Date
Cameron Cawley
0c59abf327 GRAPHICS: Optimize the Normal scaler slightly 2021-05-23 10:33:18 +03:00
Cameron Cawley
909be8a933 GRAPHICS: Add a Normal5x scaler 2021-05-23 10:33:18 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Cameron Cawley
b68dbf9eec GRAPHICS: Ensure that _bufferedOutput is resized when the scale factor changes 2021-03-15 16:48:40 +02:00
Johannes Schickel
6942dba3da GRAPHICS: Let each scaler handle 1x scaling. 2021-03-15 16:48:40 +02:00
Eric Culp
4674c7c7b0 GRAPHICS: Check bytesPerPixel when USE_SCALERS is undefined 2021-03-15 16:48:40 +02:00
Eric Culp
4c967c5fbc GRAPHICS,SDL: Revision to scaler API
oldSrcScale() is now unified with scale(). Use enableSource(bool enable)
to switch functionality. Partial screen updates are also posible because
of this.

initialize() had its prototype changes although it is functionally the
same.

setSource() no longer has a type parameter, removing support for
multiple source surfaces. They weren't useful anyway.

useOldSrc() was renamed to useOldSource() to conform to the names of
other functions.
2021-03-15 16:48:40 +02:00
Eric Culp
9ed7fde732 GRAPHICS: Capitalized pixel in template parameters 2021-03-15 16:48:40 +02:00
Eric Culp
780d5a8689 GRAPHICS: Add 4 byte per pixel support for Normal scalers 2021-03-15 16:48:40 +02:00
Eric Culp
7fd8107c76 GRAPHICS: Move Normal scaler functions into same file as plugin 2021-03-15 16:48:40 +02:00
Eric Culp
8030b7879c GRAPHICS/SDL: add ifdefs for disabling scalers 2021-03-15 16:48:40 +02:00
Eric Culp
c8bcb3912f SDL/GRAPHICS: remove disableScaling() hack from scaler plugins 2021-03-15 16:48:40 +02:00
Eric Culp
8b00ee4873 GRAPHICS: added 4x scaling to normal scaler plugin 2021-03-15 16:48:40 +02:00
Eric Culp
45ad2a4882 GRAPHICS: add PrettyName to scaler api for gui 2021-03-15 16:48:40 +02:00
Eric Culp
70426d5e74 GRAPHICS: add getFactors() for scaler plugins 2021-03-15 16:48:40 +02:00
Eric Culp
8c9cb22734 GRAPHICS/SDL/BASE: fix scaler declarations
mainly adding const and using uint instead of int
2021-03-15 16:48:40 +02:00
Eric Culp
489d361d18 GRAPHICS: fix formatting to conform to guidelines 2021-03-15 16:48:40 +02:00
Eric Culp
0d103d01c4 GRAPHICS: adds comments for scalers and clean up 2021-03-15 16:48:40 +02:00
Eric Culp
60c430d6e5 GRAPHICS: adds additinoal methods to scaler api 2021-03-15 16:48:40 +02:00
Eric Culp
318130a905 BACKENDS/GRAPHICS: Stops overlay from being scaled 2021-03-15 16:48:40 +02:00
Eric Culp
202f4efdee GRAPHICS: Changes name of normal plugin to be consistant 2021-03-15 16:48:40 +02:00
Eric Culp
7bcc1f0b13 GRAPHICS: Adds a nearest neighbor plugin
It's not used yet, but it compiles and is managed by the plugin manager.
2021-03-15 16:48:40 +02:00