Commit Graph

2178 Commits

Author SHA1 Message Date
Eugene Sandulenko
8c52f6db12 GRAPHICS: MACGUI: Reset MacWindget dirty flag on blit.
This reduces amount of unnecessary redraws.
2020-08-24 20:53:37 +02:00
Nathanael Gentry
2512ca2d5b GRAPHICS: MACGUI: Fix hex format decoding 2020-08-20 13:17:01 -04:00
Nathanael Gentry
d2a1102423 GRAPHICS: MACGUI: Fix screen copying with direct draw 2020-08-19 16:59:18 -04:00
Nathanael Gentry
7b82dcd8ac GRAPHICS: MACGUI: Add colour to text render debug 2020-08-19 16:32:45 -04:00
Eugene Sandulenko
b221999e1e GRAPHICS: Allocate more memory on generating scaled Mac fonts 2020-08-17 00:50:56 +02:00
Eugene Sandulenko
e8e137a46c GRAPHICS: Create FloodFill mask with the matching pixel format of the main surface 2020-08-16 23:50:46 +02:00
Eugene Sandulenko
367dd5ff66 GRAPHICS: MACGUI: More fixed for 32bpp mode 2020-08-16 23:08:33 +02:00
Eugene Sandulenko
f05d2f17c2 GRAPHICS: MACGUI: Made MacDrawPixPtr a global typedef 2020-08-16 00:59:05 +02:00
Eugene Sandulenko
695e8349fe GRAPHICS: MACGUI: BE-safe color creation 2020-08-16 00:59:05 +02:00
Eugene Sandulenko
e604c97607 GRAPHICS: MACGUI: Made MacDrawPixel bpp-aware 2020-08-15 16:09:20 +02:00
Eugene Sandulenko
43c3407557 GRAPHICS: MACGUI: More work on making MacWindowBorder 32bpp-aware 2020-08-15 16:09:20 +02:00
Eugene Sandulenko
ff49cb2303 GRAPHICS: MACGUI: Make pattern drawing 32bpp-aware 2020-08-15 14:50:27 +02:00
Eugene Sandulenko
56fddcb965 GRAPHICS: MACGUI: Tidy up code 2020-08-15 14:50:27 +02:00
Eugene Sandulenko
6d72ebd1e2 GRAPHICS: MACGUI: Made MacButtons and desktop render in 32bpp 2020-08-15 14:50:26 +02:00
Eugene Sandulenko
29533d9c5e GRAPHICS: MACGUI: Fix typo in findBestColor 2020-08-15 14:50:26 +02:00
Eugene Sandulenko
659e3c72b8 GRAPHICS: MACGUI: Further work on 32bpp blitting 2020-08-14 23:54:16 +02:00
Eugene Sandulenko
ee3e1e3af5 GRAPHICS: MACGUI: More 32bpp enhancements 2020-08-14 10:47:33 +02:00
Nathanael Gentry
b4c6ab24b0 GRAPHICS: MACGUI: Restore window border transparency 2020-08-13 21:24:52 -04:00
Eugene Sandulenko
d61eeb9880 GRAPHICS: MACGUI: Added 32bpp mode form MacWindowManager 2020-08-14 01:10:32 +02:00
Eugene Sandulenko
02b04d3de8 JANITORIAL: Whitespace fixes 2020-08-14 00:52:34 +02:00
Nathanael Gentry
281c89f05f GRAPHICS: MACGUI: Process windowed widget events
This ensures the correct dimensions are passed to ensure widgets within windows
process their events properly.
2020-08-13 00:05:32 -04:00
Nathanael Gentry
8b7f9d4ab2 GRAPHICS: MACGUI: Handle direct draw window offsets 2020-08-12 16:34:24 -04:00
Nathanael Gentry
3a69512fe1 GRAPHICS: MACGUI: Fix menu direct rendering 2020-08-12 16:34:24 -04:00
Eugene Sandulenko
838bdf1ba5 GRAPHICS: MACGUI: Fix warnings 2020-08-12 09:07:21 +02:00
Nathanael Gentry
a639ae4002 GRAPHICS: MACGUI: Add WM direct copy mode
This does not keep the current screen state cached in a surface, but re-creates
the screen from its various components each time something changes. This avoids
an intermediate blitting.

The mode is enabled just by not providing a surface to the WM, and instead
providing a width and height.
2020-08-12 02:34:45 -04:00
Nathanael Gentry
59dd1716b1 GRAPHICS: MACGUI: Put pause token on heap 2020-08-12 02:34:24 -04:00
Nathanael Gentry
07166de33f GRAPHICS: MACGUI: Add dirty rect handling to MacWindow
The Director engine, which relied on this functionality in its Window class, is
also updated.
2020-08-12 02:34:24 -04:00
Eugene Sandulenko
8432933c04 GRAPHICS: MACGUI: Fixed moving cursor back to previous line in MacText 2020-08-09 00:20:55 +02:00
Eugene Sandulenko
5b30501f18 GRAPHICS: MACGUI: Make cursor up/down movement more logical in MacText 2020-08-09 00:20:55 +02:00
Eugene Sandulenko
16d7359498 GRAPHICS: MACGUI: Make cursor height variable in MacText 2020-08-09 00:20:55 +02:00
Eugene Sandulenko
e8aa105779 GRAPHICS: MACGUI: Make sure we always undraw cursor 2020-08-08 11:24:34 +02:00
Eugene Sandulenko
ffed05f498 GRAPHICS: MACGUI: Clear surface before full refresh 2020-08-08 11:04:42 +02:00
djsrv
1678c7621e GRAPHICS: MACGUI: Fix inactive title color 2020-08-07 19:00:07 -04:00
djsrv
a9346eea42 GRAPHICS: MACGUI: Improve grays naming 2020-08-07 18:55:17 -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
djsrv
92abe49c5b GRAPHICS: MACGUI: Resize border surface 2020-08-07 15:21:39 -04:00
djsrv
1352ab6f9f GRAPHICS: MACGUI: Don't draw title on thin border 2020-08-07 13:45:55 -04:00
djsrv
8bc5e73d0a DIRECTOR: LINGO: Properly implement titleVisible 2020-08-07 13:40:52 -04:00
Eugene Sandulenko
09c12a820a GRAPHICS: MACGUI: Make sure MacText is updated on cursor change 2020-08-07 10:07:32 +02:00
Eugene Sandulenko
2c4de514a5 GRAPHICS: MACGUI: Remove unused variable 2020-08-07 09:45:26 +02:00
djsrv
686bc49050 GRAPHICS: MACGUI: Full refresh on dims changes
The desktop needs to be redrawn.
2020-08-06 18:55:13 -04:00
djsrv
570e33cc8a GRAPHICS: MACGUI: Draw bitmap desktop background 2020-08-06 18:32:08 -04:00
djsrv
752833ff39 GRAPHICS: MACGUI: Set _borderIsDirty on change 2020-08-06 14:45:27 -04:00
djsrv
f5d1858da9 GRAPHICS: MACGUI: Allow border to be changed 2020-08-06 14:29:24 -04:00
djsrv
85b2770d7f GRAPHICS: MACGUI: Fix inactive window coloring 2020-08-06 13:21:44 -04:00
Nathanael Gentry
fba1993465 GRAPHICS: MACGUI: MacWindow: Add centering function 2020-08-06 12:50:25 -04:00
Eugene Sandulenko
eb92e613be GRAPHICS: MACGUI: Fix warning 2020-08-06 12:24:54 +02:00
djsrv
c29ccaa0bb GRAPHICS: MACGUI: Draw title on ninepatch borders 2020-08-05 19:20:14 -04:00
djsrv
74f0434d42 GRAPHICS: MACGUI: Add _colorOffWhite 2020-08-05 19:20:14 -04:00
djsrv
43f999d8a8 GRAPHICS: MACGUI: Fix mistakes in border defs 2020-08-05 19:20:14 -04:00