Commit Graph
3063 Commits
Author SHA1 Message Date
ysj1173886760 60d9b79c0f GRAPHICS: MACGUI: add intersection check with macmenu and macwindow 2021-05-21 10:51:07 +02:00
ysj1173886760 1b211371cf GRAPHICS: MACGUI: fix the offset in macmenu 2021-05-21 10:51:07 +02:00
ysj1173886760 68099e5ebe GRAPHICS: MACGUI: fix the wm was not correctly reflushed when changing the menu items 2021-05-21 10:51:07 +02:00
Eugene Sandulenko 1e85ecf048 GRAPHICS: MACGUI: Draw plain rectangle menu in Win95 mode 2021-05-14 18:49:03 +02:00
Eugene Sandulenko f6c7f99b3d GRAPHICS: MACGUI: Simplified background restoration code in MacMenu 2021-05-14 18:49:02 +02:00
Eugene Sandulenko 463031f88a GRAPHICS: MACGUI: Do not refresh full screen when cursor is away from menu 2021-05-14 18:49:02 +02:00
Eugene Sandulenko 4df3f33399 GRAPHICS: Fix mess with color components in TransparentSurface
We were having it inconsistent for years and since the feature is underused,
nobody noticed. Also endianness doesn't make sense for the shifts,
only for the color indexes
2021-05-12 23:19:19 +02:00
Mathias Parnaudeau deefffd983 GRAPHICS: Fix leak in managed surface
In the case of the ManagedSurface constructor from a Surface object,
_disposeAfterUse is not initialized. But more, copyFrom() sets
_disposeAfterUse to YES after allocation of buffer. And then,
after the call to copyFrom, _disposeAfterUse was set to NO, what
made the pixels buffer not freed.
2021-05-12 14:10:26 +03:00
Eugene Sandulenko dc94b96a95 GRAPHICS: MACGUI: Fixed other cases of off-screen rendering 2021-05-10 14:08:30 +02:00
Eugene Sandulenko 6d82d40db6 GRAPHICS: MACGUI: Fix out-of-screen rendering when submenus are wider than screen 2021-05-10 13:58:26 +02:00
Kaloyan Chehlarski aa2b2d4178 GRAPHICS: Compile SJIS code when building AGOS
SJIS code only gets built when it's needed by an engine, but AGOS
wasn't marked as one of the engines that requires it, breaking static
engine builds.
2021-05-09 15:13:37 +03:00
D G Turner a51f5e9c1a GRAPHICS: Fix GCC Compiler Warnings 2021-05-05 11:36:04 +01:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Cameron Cawley d02daaeb2b SCUMM: Remove direct use of Graphics::Surface from ARM code (#2931) 2021-05-04 00:17:52 +03:00
Eugene Sandulenko 6e17562492 GUI: MACGUI: Make MacTextWindow working with plain fonts 2021-05-02 01:03:02 +02:00
Eugene Sandulenko ed9c2f97ca GRAPHICS: Implemented debug output for Surface 2021-05-02 01:03:01 +02:00
Eugene Sandulenko 5e6e9bf74b GRAPHICS: MACGUI: Expose MacWindowManager palette 2021-05-02 01:03:01 +02:00
SupSuper 41798fca5d GRAPHICS: MACGUI: FreeType required for Win95 fonts
Fixes compilation on platforms without FreeType
2021-05-01 07:44:05 +01:00
Eugene Sandulenko 738db125e3 GRAPHICS: MACGUI: Make MacText work with plain text 2021-05-01 01:49:48 +02:00
Eugene Sandulenko 7d4f064a2a GRAPHICS: MACGUI: Streamlined MacText initialization 2021-05-01 01:49:48 +02:00
Eugene Sandulenko 364407a5c6 GRAPHICS: Properly initialize ManagedSurface copy constructor 2021-05-01 01:49:48 +02:00
Eugene Sandulenko c60009da68 GRAPHICS: MACGUI: Initialized class variables 2021-05-01 01:49:48 +02:00
Eugene Sandulenko d98473ba47 GRAPHICS: MACGUI: Use Win95 fonts for Win95 MacMenu 2021-05-01 01:49:47 +02:00
Eugene Sandulenko 537e654138 GRAPHICS: TTF: Support loading fixed size fonts 2021-05-01 01:49:46 +02:00
Eugene Sandulenko cc0cdbbd22 GRAPHICS: MACGUI: Plug memory leak 2021-05-01 01:49:46 +02:00
Eugene Sandulenko 81252598e6 GRAPHICS: MACGUI: Optimize MacMenu rendering 2021-05-01 01:49:37 +02:00
Cameron Cawley 07d2c38d7e GRAPHICS: Fix SVG rendering on big endian 2021-04-26 19:18:59 +03:00
ysj1173886760 9c9b553d7a GRAPHICS: MACGUI: fix the logic when calc the coordinate of scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760 fb7ed6f845 GRAPHICS: MACGUI: add textRGB for mactextwindow to suit new logic of mactext when drawing the text with color. add window feature DynamicScrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760 549511c4b5 GRAPHICS: MACGUI: add rgb parameter for appendText, which makes mactext draws text with color, fix the logic when appending text 2021-04-25 02:24:15 +02:00
ysj1173886760 98cb026f70 GRAPHICS: MACGUI: fix the behaviour when we enable win95 mode when drawing scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760 c317ca1900 GRAPHICS: MACGUI: load win95scrollbar border as default when enable win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760 fc702ea9fe GRAPHICS: MACGUI: re-organize the code for drawing scrollbar for macwindow 2021-04-25 02:24:15 +02:00
ysj1173886760 82a55fd8d8 GRAPHICS: MACGUI: add getTextMaxWidth for mactext 2021-04-25 02:24:15 +02:00
ysj1173886760 27986beebc GRAPHICS: MACGUI: add comment for enableScrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760 d437b22b6b GRAPHICS: MACGUI: fix the behaviour of scrollbar of win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760 15d46a55f8 GRAPHICS: MACGUI: add the feature that you can close the window when using the menu 2021-04-25 02:24:15 +02:00
ysj1173886760 b993ab021d GRAPHICS: MACGUI: fix the algorithm when we calc the coordinate of scrollbar, modify the offsets 2021-04-25 02:24:15 +02:00
ysj1173886760 90b2c02f27 GRAPHICS: MACGUI: init the scrollSize and scrollPos at constructor 2021-04-25 02:24:15 +02:00
ysj1173886760 fa4aaa7608 GRAPHICS: MACGUI: modify the offset when drawing the mactext to suit for pink 2021-04-25 02:24:15 +02:00
ysj1173886760 855583e2e4 GRAPHICS: MACGUI: add win95 mode for scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760 f81ea96421 GRAPHICS: MACGUI: clean the code, modify the behaviour of win95 menu 2021-04-25 02:24:15 +02:00
ysj1173886760 ba4513c10b GRAPHICS: MACGUI: organize the code 2021-04-25 02:24:15 +02:00
ysj1173886760 1d3cf51b7b GRAPHICS: MACGUI: fix the bug when closing the menu, the highlight part was not correctly set 2021-04-25 02:24:15 +02:00
ysj1173886760 5d2a73fe01 GRAPHICS: MACGUI: add win95 mode for menu behaviour, currently in win95 mode, it will exit the menu only when you click something useful(trigger some event) 2021-04-25 02:24:15 +02:00
ysj1173886760 e459e5acf8 GRAPHICS: MACGUI: add win95 mode for menu padding 2021-04-25 02:24:15 +02:00
ysj1173886760 0a9ffd5f06 GRAPHICS: MACGUI: remove unnecessary codes 2021-04-25 02:24:15 +02:00
ysj1173886760 ee8d9dea03 GRAPHICS: MACGUI: set fgcolor as default format color when we are in win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760 7ef3b88a94 GRAPHICS: MACGUI: save background color for mactextwindow, add new behaviour for win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760 47f4912083 GRAPHICS: MACGUI: add new flag kWMModeWin95 for macwindowmanager 2021-04-25 02:24:15 +02:00