Walter Agazzi
8aa46edc16
AGS: Common: account for Font's height when calculating ListBox and TextBox
...
Historically these controls could draw text beyond their vertical bounds too (in non-clipping mode).
From upstream c9572541a6f8d38ed2ca1ba7af8e235c5d56c8f2
2024-01-17 03:12:28 +01:00
Thierry Crozat
9ced7b370c
AGS: fixed GUIListBox drawing double border outside of the clip
...
From upstream 0cece949e68d4fe55c6943654643abdc3bbb40d4
2022-10-09 19:16:26 +01:00
Thierry Crozat
fa87b3f28f
AGS: force update gui metrics on load and on game start
...
This fixes some controls not reporting their metrics correctly until first displayed on screen.
From upstream ea4e6762236a13621ba0771b9d5d8ac4bcf33ee8
2022-10-09 19:12:22 +01:00
Paul Gilbert
eb7421400c
AGS: Use empty() to check for emptiness in vector
...
From upstream 166803dd6cb99851e424f9eb9d150169cd3909fe
2022-05-10 21:18:00 -07:00
D G Turner
dbaa9439da
AGS: Remove Various Unused Variables Causing Compiler Warnings
2022-05-07 20:41:45 +01:00
Paul Gilbert
b1649597d7
AGS: Replaced Math/std Min/Max with ScummVM macros
...
Inspired by 6dee5ee6f271c600e30879d892295ea6069e8cc9
2022-05-05 22:41:10 -07:00
Paul Gilbert
a8ead540c5
AGS: GUIControl::CalcGraphicRect returns relative rect
...
From upstream f827c75396f433542b451ec4caaea4c41c22e5b2
2022-05-05 22:41:08 -07:00
Paul Gilbert
da1178d905
AGS: Implemented proper HasAlphaChannel for all gui controls
...
From upstream 83306ee321e127368a41068f32bd4899ae00223e
2022-05-05 22:41:06 -07:00
D G Turner
437678110e
AGS: Fix GCC Compiler Warnings
2022-05-02 16:19:16 +01:00
Paul Gilbert
ec170ebd2f
AGS: More strict MarkChanged use for gui controls, on changes only
...
From upstream 1383ff33eb4620eae18598f96f7e0cc948977174
2022-05-01 17:23:22 -07:00
Paul Gilbert
a476850123
AGS: Calculate visible graphic size of gui controls for textures
...
From upstream a91bec5f3fa7f37187a084cabd0ab2289e609a6e
2022-05-01 17:23:19 -07:00
Paul Gilbert
2df62bdd55
AGS: Only redraw gui controls when they are marked as changed
...
From upstream 27a6bd6a13494cd670fb6749e5bd663f088487ea
2022-05-01 17:23:19 -07:00
Paul Gilbert
62ebde86a1
AGS: Gui controls draw themselves at requested offset
...
From upstream 9e9c8ffafe465b907ed0d22bcb1ba4df06803b8b
2022-04-29 22:20:40 -07:00
Paul Gilbert
403892950c
AGS: Removed ListBox::DrawItemsFix, add preview items externally
...
From upstream af126ccdef791d6f97a65018bc3188e9767d399f
2022-04-29 22:20:40 -07:00
Paul Gilbert
ad599a6425
AGS: In gui clipping mode prevent listbox items drawn over scrollbar
...
From upstream 37d757e88bfd7df47cf4154d37ec1a3df79e2c16
2022-04-29 22:20:39 -07:00
Paul Gilbert
623e895971
AGS: Changed text alignment switches to use kGameVersion_360_21
...
From upstream 0948e6be65b46df8bd4b183f77655375d6a06e95
2022-04-22 21:01:38 -07:00
Paul Gilbert
62574f8eda
AGS: Use outlined width/height when arranging text on GUI
...
From upstream 8fd4b1b55dc08949e70d295afb4be91d1a26da5c
2022-04-22 20:54:00 -07:00
Paul Gilbert
dc3ce9f70a
AGS: Renamed few font functions for consistent naming style
...
From upstream 9c355da410b734edc79212009a5e1be0b502c3b0
2022-03-22 22:30:13 -07:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Paul Gilbert
83388a11e2
AGS: Fixed ListBox items may become unaccessible after resize
...
From upstream 6e2a1ff2d8ca0430099261e5b2eeb79e73c8012d
2021-08-20 21:49:38 -07:00
Paul Gilbert
6a8f1f9a71
AGS: More accurate notification of GUI control changes for redrawing
...
From upstream fd7cb8dc822e50cc485aa0dfc937217ead1cb996
2021-08-20 21:49:38 -07:00
Paul Gilbert
3ec7897644
AGS: Fixed ListBox calling SetFont in Draw, causing GUI to reupdate
...
From upstream 15bbe018e1f05a202de54ebebb335a5ee4611732
2021-08-20 21:49:38 -07:00
Paul Gilbert
91fa6ee386
AGS: Removed check_font() from GUI, as font handling is now safer
...
From upstream dc24ac2493026cfecfd0664a057f61f99f4b28ae
2021-08-20 21:49:38 -07:00
Paul Gilbert
cf3cc50981
AGS: Remove global macro from some strings and comments
2021-07-12 20:05:28 -07:00
Paul Gilbert
eb1e337edd
AGS: Removed String's "const char*" conversion operator
...
From upstream 7c426674e7e53bffe9120f8ffc059b77fa03a606
2021-06-13 21:08:59 -07:00
Paul Gilbert
701396361c
AGS: Import of fresh codebase
2021-06-13 21:08:44 -07:00