Commit Graph
113 Commits
Author SHA1 Message Date
Paul Gilbert baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
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 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
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 d98473ba47 GRAPHICS: MACGUI: Use Win95 fonts for Win95 MacMenu 2021-05-01 01:49:47 +02:00
Eugene Sandulenko 81252598e6 GRAPHICS: MACGUI: Optimize MacMenu rendering 2021-05-01 01:49:37 +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 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
Vladimir Serbinenko 3fc822e55c COMMON: introduce substr for U32String (#2585)
It's safer than direct array manipulation. Replace current uses
of subsetting with substr.
2020-11-01 22:53:03 +01:00
Nathanael Gentry 3a69512fe1 GRAPHICS: MACGUI: Fix menu direct rendering 2020-08-12 16:34:24 -04:00
djsrv 61cfbdc469 GRAPHICS: MACGUI: Add more colors as properties
Finding the closets color in the current palette is necessary for
transparency in bitmap borders to work.
2020-08-07 16:47:19 -04:00
BLooperZ ec83715b43 COMMON: add UnicodeBiDiText wrapper 2020-05-12 14:36:09 +02:00
BLooperZ 6a653312e2 GRAPHICS: remove text_renderer 2020-05-12 14:36:09 +02:00
BLooperZ a92864c8c1 GRAPHICS: MACGUI: allow setting widget alignment 2020-05-12 14:36:09 +02:00
BLooperZ 0c30136c0f GRAPHICS: change text renderer parameters position 2020-05-12 14:36:09 +02:00
BLooperZ c39630ad53 GRAPHICS: MACGUI: add text renderer and visual pos 2020-05-12 14:36:09 +02:00
BLooperZ 38d27ee7ac GRAPHICS: MACGUI: fix accelerator position 2020-05-12 14:36:09 +02:00
BLooperZ 625241e3b4 GRAPHICS: MACGUI: flip layout on RTL 2020-05-12 14:36:09 +02:00
BLooperZ 861d8da600 PINK: support BiDi on menu bar items 2020-05-12 14:36:09 +02:00
Henrik "Henke37" Andersson d315fc8add MACGUI: Use real Engine and PauseToken classes 2020-05-10 23:39:31 +02:00
Eugene Sandulenko 7a4d5f45e9 GRAPHICS: MACGUI: Renamed clashing methods 2020-04-25 13:44:18 +02:00
Eugene Sandulenko 4193097f3f GRAPHICS: MACGUI: Draw text styles in MacMenu 2020-03-22 17:59:19 +01:00
Eugene Sandulenko 9b3ca6498e GRAPHICS: MACGUI: Adding style to menu items 2020-02-07 19:21:47 +01:00
Cameron Cawley 948c555ea6 ALL: Create all instances of NEResources and PEResources using new instead of on the stack
Also adapted WinCursorGroup and MacMenu to reflect this.
2020-01-11 17:34:12 +02:00
Eugene Sandulenko 2d9b3b0b2d GRAPHICS: MACGUI: Initial code for MacEditableText 2020-01-02 18:23:33 +01:00
Eugene Sandulenko 2886f51539 GRAPHICS: MACGUI: Show menu always when clicked 2019-12-22 12:03:41 +01:00
Eugene Sandulenko 64b148afba GRAPHICS: MACGUI: Added possibility to provide action ids in menus in strings 2019-12-16 16:40:51 +01:00
Eugene Sandulenko 2582036ea6 GRAPHICS: MACGUI: Remove flicker when exiting modal menu 2019-12-16 15:26:39 +01:00
Eugene Sandulenko 9f789b4bde GRAPHICS: MACGUI: Optimized drawing of MacMenu 2019-12-16 14:21:11 +01:00
Eugene Sandulenko 4c3cea846b GRAPHICS: MACGUI: Restore background for modal MacMenus 2019-12-16 12:19:36 +01:00
Eugene Sandulenko 8c0590be77 GRAPHICS: MACGUI: Initial code for truly modal MacMenu 2019-12-16 11:23:06 +01:00
Eugene Sandulenko f724e672f8 GRAPHICS: MACGUI: Save background on menu activation 2019-12-16 11:09:15 +01:00
Eugene Sandulenko 98b14a36ad GRAPHICS: MACGUI: Added setup sanity checks to MacMenu 2019-12-11 12:00:16 +01:00
D G Turner edf310c894 GRAPHICS: MACGUI: Fix GCC Signed vs. Unsigned Warnings 2019-10-14 03:29:15 +01:00
Eugene Sandulenko e3888d51f4 GRAPHICS: MACGUI: Fix menu width when there is a submenu 2019-10-13 23:48:42 +02:00
Eugene Sandulenko df93f8a658 GRAPHICS: MACGUI: Process tab symbol in Windows menus 2019-10-13 23:48:42 +02:00
Marisa-Chan 288ea5783e GRAPHICS: MACGUI: Fix assertion if shortcut in menu element is a last symbol 2019-10-13 15:29:25 +02:00
D G Turner 3911b56444 GRAPHICS: MACGUI: Fix Possible Out of Bounds Read with Trailing Ampersand
Since the ampersand is used as an escape character, it is repeated when
it actually appears in the string. Unfortunately, this requires a one
character lookahead which could result in reading beyond the string if
this ampersand is the last character (which would be malformed, but
possible). To avoid an out of bounds read, this is now qualified by
the string length. Trailing ampersands will now be ignored without issue.
2019-10-05 00:38:40 +01:00
D G Turner 452b380976 GRAPHICS: MACGUI: Fix GCC Signed vs. Unsigned Warnings 2019-10-05 00:31:11 +01:00
Eugene Sandulenko c17800cfc4 GRAPHICS: MACGUI: Add possibility to setup engine redraw callback 2019-10-04 22:32:24 +02:00