Commit Graph
3567 Commits
Author SHA1 Message Date
Eugene Sandulenko 7a09662701 GRAPHICS: Fix artifacts in rounded square border drawing in GUI 2021-04-11 21:21:44 +02:00
Orgad Shaneh 49053f2b9b GRAPHICS: Remove unused const
Amends commit 0443d5a133.

Detected by Clang.
2021-04-10 15:29:08 +03:00
Torbjörn Andersson 2fb992ed4e GRAPHICS: Clip Mac font glyphs to the destination surface
This was probably causing instabilities in the MacVenture engine. The
engine is pretty broken at the moment, and the command window is so
small that text doesn't fit in it at all. Hopefully this will make the
remaining errors easier to debug... some day.
2021-04-04 10:23:20 +02:00
ysj1173886760 2ab965e53e GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine 2021-04-01 16:08:56 +02:00
ysj1173886760 0dcde7c96a GRAPHICS: MACGUI: add new feature that when scroll wheel, the scroll bar will also display 2021-04-01 16:08:56 +02:00
ysj1173886760 1afc246a69 GRAPHICS: MACGUI: Added the callback function for drawing invert pixel for default palette, which is used to draw the scroll bar 2021-04-01 16:08:56 +02:00
ysj1173886760 aba96cb38f GRAPHICS: MACGUI: recalc the scrollSize and scrollPos, in order to fix scroll bar for mactextwindow 2021-04-01 16:08:56 +02:00
ysj1173886760 0443d5a133 GRAPHICS: MACGUI: remove drawSimpleBorder which draws the border manually 2021-04-01 16:08:56 +02:00
ysj1173886760 f2825c85de GRAPHICS: enhance blit in nine-patch with transparency color 2021-04-01 16:08:56 +02:00
ysj1173886760 43e95f3a48 GRAPHICS: MACGUI: set palette in macwindowmanager line 41 as default a palette of MacWindowManager 2021-04-01 16:08:56 +02:00
ysj1173886760 c5481d9c02 GRAPHICS: MACGUI: modify the logic of drawInput and appendText, in order to fix the bug of cursor dislocation and incorrectly drawing the input 2021-04-01 16:08:56 +02:00
ysj1173886760 63f5de7069 GRAPHICS: MACGUI: init _textShadow at mactext constructor 2021-04-01 16:08:56 +02:00
ysj1173886760 0fdf29ca19 GRAPHICS: MACGUI: fix the bug when splitting a new line 2021-04-01 16:08:56 +02:00
Cameron Cawley 099b593943 GRAPHICS: Add functions for getting and setting pixels in a surface 2021-03-28 09:50:15 -03:00
ysj1173886760 db6a0fce54 GRAPHICS: MACGUI: fix the problem of incorrectly render the cursor and selected area 2021-03-27 13:05:31 +01:00
ysj1173886760 8e8219d0ea GRAPHICS: MACGUI: fix the bug when splitting a new line 2021-03-27 13:05:31 +01:00
ysj1173886760 6aea4cb68b GRAPHICS: MACGUI: fix the bug of MacTextWindow incorrectly drawing the surface 2021-03-27 13:05:31 +01:00
ysj1173886760 85ecee5cde GRAPHICS: MACGUI: fix the bug of splitString which incorrectly deal with \n and incorrect order of draw rectangles in draw function 2021-03-27 13:05:31 +01:00
ysj1173886760 3f4e072632 GRAPHICS: MACGUI: Added flag to load ScummVM wallpaper optionally 2021-03-27 13:05:31 +01:00
ysj1173886760 312788b228 GRAPHICS: MACGUI: fix the bug dumping when initializing Wage Engine 2021-03-27 13:05:31 +01:00
a/ 851b0c5edc GUI: Add lowres support for the renderer dropdown 2021-03-26 15:34:22 +01:00
Orgad Shaneh d69db0c54f GRAPHICS: Remove deprecated register keyword 2021-03-25 08:17:55 +02:00
Orgad Shaneh 05b72a8896 GRAPHICS: Remove deprecated register keyword 2021-03-24 01:05:17 +02:00
Thierry Crozat a3f3d71c57 GRAPHICS: Expose ascent value in font class 2021-03-23 20:25:23 +00:00
Matthew Hoops 3c158972b3 GRAPHICS: Add the Windows busy cursor 2021-03-22 00:07:37 +01:00
ysj1173886760 2b6754e187 GRAPHICS: MACGUI: fix the bug of dealing with long word in MacText
it now can deal with the word with many font
it now can deal with multi paragraph and had it`s own wrapping
empty string and sequence of \n is tested
2021-03-20 15:15:56 +01:00
Eugene Sandulenko f8ac24d27a GRAPHICS: MACGUI: Better handling for setActiveWidget
This fixes cursor in editable text widgets.
2021-03-19 20:13:57 +01:00
Thierry Crozat 7ec6215547 GRAPHICS: Fix possible out of bound write for 1bpp blit in ManagedSurface 2021-03-16 23:46:50 +00:00
Cameron Cawley b596ebf8b8 GRAPHICS: Remove use of gBitFormat from the aspect ratio code 2021-03-15 16:48:40 +02:00
Cameron Cawley b68dbf9eec GRAPHICS: Ensure that _bufferedOutput is resized when the scale factor changes 2021-03-15 16:48:40 +02:00
Cameron Cawley 6a6cdc2bce GRAPHICS: Use override and final keywords 2021-03-15 16:48:40 +02:00
Cameron Cawley 97e176a098 GRAPHICS: Increase the number of extra pixels required by AdvMame4x 2021-03-15 16:48:40 +02:00
Cameron Cawley 9030ac7305 GRAPHICS: Remove unused code 2021-03-15 16:48:40 +02:00
Johannes Schickel 5df18f7d86 GRAPHICS: Take advantage of ColorMasks::PixelType in scaler code. 2021-03-15 16:48:40 +02:00
Johannes Schickel 088119b57c GRAPHICS: Very small cleanup for Edge scaler code. 2021-03-15 16:48:40 +02:00
Johannes Schickel 8825c9e3b4 GRAPHICS: Keep destination buffer in SourceScaler instead of SDL backend. 2021-03-15 16:48:40 +02:00
Johannes Schickel 5420a7f6bd GRAPHICS: Add a default implementation for ScalerPluginObject::getFactor. 2021-03-15 16:48:40 +02:00
Johannes Schickel abbdadf869 GRAPHICS: Add possibility to search for a scaler via its name. 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
Johannes Schickel b225858e41 GRAPHICS: Let ScalerPluginObject::setFactor return the old factor.
This simplifies things a bit.
2021-03-15 16:48:40 +02:00
Cameron Cawley b78323897d SDL: Fix compilation 2021-03-15 16:48:40 +02:00
Martin T. H. Sandsmark f4f9957f85 scalerplugin: port to new plugin api 2021-03-15 16:48:40 +02:00
Eric Culp 39608f391c SDL,GRAPHICS: Add option for AR correction without scalers 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 f172718b79 CONFIGURE: Added configure option for Edge2x-3x scaler plugin 2021-03-15 16:48:40 +02:00
Eric Culp 3e9bd387e7 GRAPHICS: Clean up Edge plugin source
Add static keyword to some functions.

Rename functions to camelCase style.
2021-03-15 16:48:40 +02:00
Eric Culp 4c4028cf1d GRAPHICS: Various formatting fixes 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 cb5c323b54 GRAPHICS: Constify the src in setSource 2021-03-15 16:48:40 +02:00
Eric Culp c5c5662330 GRAPHICS,SDL: Change oldSrcScale api
More bookkeeping is kept in common scaler code instead of the backend.
Plugins inheriting SourceScaler will have this functionality.

TODO: Some new functions may still be able to be combined to simplify
the API.
2021-03-15 16:48:40 +02:00