Eugene Sandulenko
e4c3c69090
GRAPHICS: MACGUI: Fix nested menus parsing
2019-10-03 14:14:57 +02:00
Eugene Sandulenko
b5573c8e2a
GRAPHICS: MACGUI: Fix nested menus command processing
2019-10-03 14:00:15 +02:00
Eugene Sandulenko
890adf6e3a
GRAPHICS: MACGUI: Fix menu re-entrance
2019-10-03 10:03:02 +02:00
D G Turner
e97985e887
GRAPHICS: Further Fix for MSVC Warnings in Nine Patch Code
2019-10-03 04:42:44 +01:00
D G Turner
5c2de7a40d
GRAPHICS: Add Missing Switch Default Case in PixelFormat Header
...
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-03 00:59:41 +01:00
D G Turner
9e761e1c9f
GRAPHICS: MACGUI: Fix GCC Signed vs. Unsigned Warnings
2019-10-02 23:58:04 +01:00
Eugene Sandulenko
ee139e86f3
GRAPHICS: MACGUI: Correctly render highlights for the open submenus
2019-10-03 00:05:12 +02:00
Eugene Sandulenko
571a455c6a
GRAPHICS: MACGUI: Close nested submenus on hover
2019-10-03 00:05:12 +02:00
Eugene Sandulenko
a843a90207
GRAPHICS: MACGUI: Implement nested submenu navigation
2019-10-03 00:05:12 +02:00
Eugene Sandulenko
d3df14fce1
GRAPHICS: MACGUI: Finish implementation for nested submenus drawing
2019-10-03 00:05:12 +02:00
Eugene Sandulenko
b157a27e2b
GRAPHICS: MACGUI: Unify submenu dimension calculations
2019-10-03 00:05:12 +02:00
Eugene Sandulenko
1ced332fde
GRAPHICS: MACGUI: Render nested submenus
2019-10-03 00:05:12 +02:00
Eugene Sandulenko
9afaefb748
GRAPHHICS: MACGUI: Fix crash on submenu rendering
2019-10-02 16:50:34 +02:00
Eugene Sandulenko
87dc3689aa
GRAPHICS: MACGUI: Fix and simplify nested submenu reading
2019-10-02 13:47:04 +02:00
Eugene Sandulenko
5b0e465001
GRAPHICS: MACGUI: Fix debug menu printing
2019-10-02 13:38:28 +02:00
Eugene Sandulenko
6dee083352
GRAPHICS: MACGUI: Added debug printout for MacMenu
2019-10-02 12:41:45 +02:00
Eugene Sandulenko
a49fd0dd5e
GRAPHICS: MACGUI: Read nested submenus from PE exes
2019-10-02 12:40:57 +02:00
Eugene Sandulenko
cf6e509cc9
GRAPHICS: MACGUI: Render submenus recursively
2019-10-02 01:09:49 +02:00
Eugene Sandulenko
bd7aa647de
GRAPHICS: MACGUI: Take submenu arrow indicator width into account
2019-10-02 00:33:34 +02:00
Eugene Sandulenko
ff32309261
GRAPHICS: MACGUI: Change notion of bbox computation to submenus
2019-10-02 00:31:48 +02:00
Eugene Sandulenko
da01e83906
GRAPHICS: MACGUI: Further work on nested submenus
2019-10-01 02:05:56 +02:00
Eugene Sandulenko
8357725bc2
GRAPHICS: MACGUI: Code for drawing nested submenu arrows
2019-10-01 00:58:16 +02:00
D G Turner
dccf5c1960
GRAPHICS: Add Default Constructor for Cursor Structure
...
This has a similar issue to the Palette structure and thus this will
avoid possible unstable uninitialized bugs which could be very hard
to track down or replicate.
2019-09-30 04:00:11 +01:00
D G Turner
730a89ddc5
GRAPHICS: Add Default Constructor For Palette Structure
...
This is used for outPalette in sci/graphics/palette32 code without
calling through the nominal constructor which leaves the various
fields _possibly_ uninitialised and thus triggers various compiler
warnings. Adding a default constructor fixes the root cause.
2019-09-30 03:46:30 +01:00
Eugene Sandulenko
3fbcc67766
GRAPHICS: MACGUI: Load border padding directly from the 9-patch
2019-09-29 23:26:05 +02:00
Eugene Sandulenko
45ef1eb166
GRAPHICS: Fix padding calculation for 9-patch images
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
25159714fb
GRAPHICS: Allow 256-byte palettes to 9-patch
2019-09-29 17:40:12 +02:00
Eugene Sandulenko
f7262a4e43
GRAPHICS: Added more debug output to 9-patch
2019-09-29 17:39:44 +02:00
Eugene Sandulenko
ab14c41038
GRAPHICS: MACGUI: Added safaguards to border blitting
2019-09-29 17:28:50 +02:00
Eugene Sandulenko
2da99ab0dc
GRAPHICS: Fix NinePatch palette length.
...
Byte did not allow to have 256 color palettes.
2019-09-29 16:40:06 +02:00
Eugene Sandulenko
547122f738
MACGUI: Added sanity check to 9-patch recalculatuon
2019-09-29 00:35:13 +02:00
Eugene Sandulenko
772e60526f
GRAPHICS: Initialize class variable
2019-09-28 01:48:11 +02:00
Eugene Sandulenko
1dd056b689
MACGUI: Do not assert when recalculating boards on loading
2019-09-28 01:29:35 +02:00
D G Turner
d83e0df8f0
GRAPHICS: Fix MSVC Warning in Nine Patch
2019-09-15 23:24:33 +01:00
Bastien Bouclet
042e196488
GRAPHICS: Fix VectorRenderer's colorFillClip to apply the clipping rect
2019-09-08 19:55:23 +02:00
Strangerke
b1db45b718
HDB: Remove useless returns
2019-09-07 22:49:07 +02:00
Eugene Sandulenko
3851c2d9a6
GRAPHICS: Added source transparency parameter to ManagedSurface::transBlit
2019-09-03 17:17:14 +02:00
Eugene Sandulenko
14f8e0574f
GRAPHICS: Fix Managed Surface alpha blending
2019-09-03 17:17:14 +02:00
sluicebox
60fcf993e7
GRAPHICS: Display Mac monochrome cursor inverted pixels
...
Bug #7050
2019-08-21 14:13:26 +03:00
D G Turner
d78459f8bc
GUI: Fix GCC Compiler Warnings in GUI Theme Parser Code
...
This removes the usage of memset to clear complex structures and replaces
them with constructor methods for the structures which will be executed
when these are instantiated.
2019-08-17 05:03:04 +01:00
Cameron Cawley
92a3a3a8a5
GRAPHICS: MACGUI: Allow loading menus from resource forks
2019-08-11 22:27:11 +03:00
Cameron Cawley
9052a16887
GRAPHICS: MACGUI: Use Common::String for addMenuItem and addMenuSubItem
2019-08-10 14:50:33 +01:00
Cameron Cawley
1632fba91e
GRAPHICS: MACGUI: Don't hide the menu bar if kWMModeAutohideMenu is not enabled
2019-08-10 13:08:15 +01:00
Cameron Cawley
fe5dddf901
GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor
2019-08-09 23:58:32 +03:00
Thanasis Antoniou
4630895ccc
COMMON: Explain new params for wordWrapText()
2019-08-02 00:08:38 +02:00
Thanasis Antoniou
1bca3de594
COMMON: Support text wrapping with even width line segments
...
The new arguments are optional. The lines segments will be close to the same width.
The algorithm is similar to the one we had for Blade Runner but not exactly the same, since that one would wrap a line at a white space after the theoretical split point (quotient of full line text width divided by target lines number)
2019-08-02 00:08:38 +02:00
SupSuper
1669ef6244
GRAPHICS: Fix ManagedSurface transBlitFrom ignoring flipped parameter
2019-07-14 00:46:30 +02:00
SupSuper
176109da59
GRAPHICS: Fix wrong rect size when blitting subsurface to ManagedSurface
...
We want the srcRect size and not the original surface size
2019-07-14 00:46:30 +02:00
Le Philousophe
3a7219fa57
JANITORIAL: Avoid C4121 warnings in MSVC by reordering fields
...
C4121 is about 'symbol': alignment of a member was sensitive to packing
2019-06-30 21:43:58 +03:00