55 Commits

Author SHA1 Message Date
Eugene Sandulenko adbeacf1ae GRAPHICS: MACGUI: Fix crash in MacText with scrolling
Introduced in a3fd645, and was visible in Total Distortion bookshelf
2026-05-17 10:32:48 +02:00
Cameron Cawley a3fd645179 GRAPHICS: MACGUI: Support rendering with any 8/16/32bpp pixel format 2026-05-05 13:45:11 +02:00
Eugene Sandulenko bfd65a257e GRAPHICS: MACGUI: Create MacText border mask 2026-04-11 22:49:02 +02:00
dhruv 14e2c5e2c7 GRAPHICS: MACGUI: fix #16334 title box bug.
the box for the window title in WAGE games are not always the correct size, this was due to the max width of the box being clamped to less than what the title width max had which was an offset of 8 added that to max width for the box as well.
2026-01-21 02:36:55 +03:00
Orgad Shaneh 050067294f MACGUI: Avoid needless copies of BorderOffsets 2025-08-17 00:25:43 +02:00
Orgad Shaneh bc269a08da MACGUI: Initialize all BorderOffsets fields in setBorder
Amends 665fefda79.
2025-08-16 23:24:25 +03:00
Alikhan Balpykov 3835bde895 GRAPHICS: MACGUI: Add offset fields for resize button 2025-08-14 23:38:27 +02:00
Alikhan Balpykov 665fefda79 GRAPHICS: MACGUI: Add offset fields for close button 2025-08-14 23:38:27 +02:00
Alikhan Balpykov 9f184bfad1 GRAPHICS: MACGUI: Fix borders stop being drawn when resizing 2025-08-09 21:11:29 +02:00
Orgad Shaneh c5c083dd07 JANITORIAL: Fix some release build warnings
* Unused locals (assert is no-op in release build)
* Bad usage of strncpy
* Uninitialized variables
2025-05-05 04:44:20 +08:00
Scott Percival c79f84e787 GRAPHICS: MACGUI: Move scrollbar support into MacText 2025-04-19 18:22:48 +08:00
Matthew Jimenez 77ee5a9007 IMAGE: Get palette class by reference on image decoders 2025-04-12 15:47:17 +03:00
cmd05 00f2abf93b GRAPHICS: MACGUI: Fix color palette used in nine-patch bitmap for disabling border 2025-03-11 15:36:51 +01:00
Le Philousophe 2a37e2b808 GRAPHICS: MACGUI: Implement drawing primitives
This makes the code comply with the latest API changes.
The drawing calls now need to be optimized for the complex shapes.
2025-01-24 12:11:17 +01:00
Cameron Cawley 8d9614ccd5 GRAPHICS: MACGUI: Extend the font ID enum 2024-12-09 23:24:23 +02:00
Matthew Jimenez ee5ebec7ca IMAGE: Remove palette start from image decoder.
The palette start value was always zero, adding complexity without benefit.
2024-03-31 23:16:59 +03:00
Nabeel Khan 5b10353a68 GUI: Implement Window border draggability 2024-03-14 18:59:16 +01:00
Cameron Cawley 6ee5aad258 GRAPHICS: Remove use of TransparentSurface in NinePatch code 2023-10-24 20:16:34 +02:00
Avijeet c0cf312748 GRAPHICS: MACGUI: Account for characters having 1 white space around them 2022-08-05 20:15:03 +02:00
Eugene Sandulenko 3515dc79eb GRAPHICS: MACGUI: Switch to wider Rect primitives for now
We need to eliminate their usage but that requires more testing
2022-07-13 23:23:03 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Martin Gerhardy 37de1b3146 MACGUI: const for some methods 2021-09-19 15:21:56 +02:00
Eugene Sandulenko c60009da68 GRAPHICS: MACGUI: Initialized class variables 2021-05-01 01:49:48 +02:00
ysj1173886760 fc702ea9fe GRAPHICS: MACGUI: re-organize the code for drawing scrollbar for macwindow 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 855583e2e4 GRAPHICS: MACGUI: add win95 mode for scrollbar 2021-04-25 02:24:15 +02:00
ysj1173886760 3b47e56155 GRAPHICS: MACGUI: clean the codes 2021-04-12 14:04:25 +02:00
ysj1173886760 b8f8fdbf19 GRAPHICS: MACGUI: make title color depend on the border color 2021-04-12 14:04:25 +02:00
ysj1173886760 3b53a4f2f7 GRAPHICS: MACGUI: move titlePos into BorderOffsets 2021-04-12 14:04:25 +02:00
ysj1173886760 7f47b9f6c0 GRAPHICS: MACGUI: move border stuff into macwindowborder 2021-04-12 14:04:25 +02:00
ysj1173886760 c2353d3797 GRAPHICS: MACGUI: use lazy load to load built-in border types, add scrollbar flag to indicate whether the window has scroll bar 2021-04-12 14:04:25 +02:00
ysj1173886760 aeacf0d4d2 GRAPHICS: MACGUI: modify the position where it draws the title, currently, it will draw title at the center of title box 2021-04-12 14:04:25 +02:00
ysj1173886760 a0964d690c GRAPHICS: MACGUI: Add border flags to the builtin border types, fix the remaining part of macgui which are not adapt to border flags. 2021-04-12 14:04:25 +02:00
ysj1173886760 6d7e794ed3 GRAPHICS: MACGUI: Add flag to indicate the border type, move drawTitle and drawScrollBar into macwindowborder 2021-04-12 14:04:25 +02:00
ysj1173886760 307147c565 GRAPHICS: MACGUI: use titlePos to calc titleIndex, change the titleWidth in 9-patch when title is changed 2021-04-12 14:04:25 +02:00
ysj1173886760 8894317e89 GRAPHICS: MACGUI: add titleIndex and titleWidth to macborder in order suit to 9-patch 2021-04-12 14:04:25 +02: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
djsrv f5d1858da9 GRAPHICS: MACGUI: Allow border to be changed 2020-08-06 14:29:24 -04:00
djsrv c29ccaa0bb GRAPHICS: MACGUI: Draw title on ninepatch borders 2020-08-05 19:20:14 -04:00
djsrv 313f4bda00 GRAPHICS: MACGUI: Fix MacWindowBorder::hasOffsets 2020-07-31 16:38:37 -04:00
djsrv d4c825b089 GRAPHICS: Allow using Mac WM best color in 9patch 2020-07-31 16:38:37 -04:00
Eugene Sandulenko 3fbcc67766 GRAPHICS: MACGUI: Load border padding directly from the 9-patch 2019-09-29 23:26:05 +02:00
Eugene Sandulenko ffc4b685e3 GRAPHICS: MACGUI: Fixed stack smashing 2019-09-29 17:40:33 +02:00
Eugene Sandulenko ab14c41038 GRAPHICS: MACGUI: Added safaguards to border blitting 2019-09-29 17:28:50 +02:00
Eugene Sandulenko fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Borja Lorente 5bba089724 GRAPHICS: Fix big leak when blitting macgui borders 2016-08-25 13:26:02 +02:00
Borja Lorente 9444a1864b GRAPHICS: Fix leak in macgui border loading 2016-08-25 13:26:02 +02:00
Borja Lorente 6d8b6ad4f8 GRAPHICS: Fix include path in macwindowborder 2016-08-02 08:33:50 +02:00
Borja Lorente f92873ae37 GRAPHICS: Add missing file header 2016-08-02 08:33:50 +02:00