Commit Graph
412 Commits
Author SHA1 Message Date
Thierry Crozat 24cec3cd1b GUI: Fix use after free of surface in GridWidget
This happened after calling scaleGfx if the original surface was
already at the correct size. In such a case scaleGfx returns the
original surface, so it should not be freed.
2022-02-27 20:11:02 +00:00
SupSuper 57d0df273e GUI: Scale grid widget icons with filtering 2022-02-22 17:46:21 +00:00
Thunderforge fd129ebc0c JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments
Apple's desktop operating system was formerly called "Mac OS X" and "OS X", but since 2016 it has been called "macOS" (starting with version 10.12).

Changing across all comments and documentation to use this current terminology, except in cases where the historical versions are explicitly referenced. No code changes are made; we should consider changing those in future PRs.
2022-01-29 14:15:05 +01:00
Eugene Sandulenko 43d16746c0 GUI: Add override keywords 2022-01-25 22:16:11 +01:00
Die4Ever 626b86fcce GUI: fix removeTab not writing back _firstWidget 2022-01-23 20:28:55 +02:00
Die4Ever 42a27fda40 GUI: tabs with scrollbars for more pages 2022-01-23 20:28:55 +02:00
Die4Ever 4ef38a9255 GUI: tabs with scrollbars 2022-01-23 20:28:55 +02:00
Die4Ever 30a8d927a1 GUI: tabs with scrollbars 2022-01-23 20:28:55 +02:00
Le Philousophe 0802db2a4e GUI: Initialize language and platform even if unused 2022-01-06 19:39:05 +02:00
Le Philousophe 1b3ac06f69 GUI: Fix various memory leaks related to grid widget 2022-01-06 19:36:23 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Torbjörn Andersson 934567a87c GUI: Fix grid memory leaks
Clearing a HashMap doesn't delete the objects stored inside it, so do
that explicitly.
2021-11-16 13:34:17 +01:00
Torbjörn Andersson c420983634 GUI: Don't leak tray dialogs
Since the dialog isn't used outside of the function, I've also made the
variables local.
2021-11-15 09:46:01 +01:00
Eugene Sandulenko ed5f0c1924 GUI: Properly initialize GridWidget 2021-11-13 22:06:35 +01:00
D G Turner 2a5429f947 GUI: Fix GCC Fall Through Warning 2021-11-13 05:56:51 +00:00
Eugene Sandulenko 04a43695e7 GUI: Use filtered search in GroupedList 2021-11-12 15:38:21 +01:00
Eugene Sandulenko 6f773e2d01 GUI: Draw Grouped List with bold font 2021-11-12 14:46:34 +01:00
Eugene Sandulenko 1661fa1ba6 GUI: Read icons and metadata from gui-icons.dat 2021-11-12 14:46:34 +01:00
Eugene Sandulenko 79e2150a6f GUI: Do not spam console when icon files are not available 2021-11-12 14:46:34 +01:00
Eugene Sandulenko f33e3c26a5 GUI: Mark Grid-related things translatable 2021-11-12 14:46:34 +01:00
Eugene Sandulenko 109beb4f86 GUI: Explicitely use Common:: namespace 2021-11-12 14:46:34 +01:00
Eugene Sandulenko 50cf681017 GUI: Fix include guard define 2021-11-12 14:46:34 +01:00
Eugene Sandulenko e5d1701220 GUI: Fix warnings 2021-11-12 14:46:34 +01:00
Eugene Sandulenko a497d25640 GUI: Do not show groups when only "ALL" is present in the grouped list 2021-11-12 14:46:34 +01:00
av-dx d5a07fc3ed GUI: insert_at color in _listColors instead of push_back 2021-11-12 14:46:34 +01:00
av-dx 422b3cd64e GUI: Redraw the grid on switching grouping method 2021-11-12 14:46:34 +01:00
av-dx 009280aa53 GUI: Add filtering to grid view 2021-11-12 14:46:34 +01:00
av-dx ddad1628e2 GUI: Protect few GridWidget members 2021-11-12 14:46:34 +01:00
av-dx 4e128abe3f GUI: Remove grouping test in grid.h 2021-11-12 14:46:34 +01:00
av-dx 07a25290b3 GUI: Get platform and flag icon size from theme 2021-11-12 14:46:34 +01:00
av-dx 01849e28ef GUI: Create a style variable for drawing bold headers 2021-11-12 14:46:34 +01:00
av-dx 042fcf45bc GUI: Remove unnecessary if-else in toggleGroup 2021-11-12 14:46:34 +01:00
av-dx 44e0be04ee GUI: Replace !(_listColors.size()) with empty() 2021-11-12 14:46:34 +01:00
av-dx c2ab551bad JANITORIAL: Add comments to explain assertion 2021-11-12 14:46:34 +01:00
av-dx 75d2963d67 GUI: Fix filtering in grouped list widget 2021-11-12 14:46:34 +01:00
av-dx eb8d7098f6 GUI: Add metadata names to grouped list widget 2021-11-12 14:46:34 +01:00
av-dx af969a48f3 GUI: Add scrollToEntry() function in the grid 2021-11-12 14:46:34 +01:00
av-dx 9d1c12ff88 JANITORIAL: Fix alignment 2021-11-12 14:46:34 +01:00
av-dx 440ad82504 GUI: Remove redundant constructors 2021-11-12 14:46:34 +01:00
av-dx d175762444 JANITORIAL: Follow naming convention for class members 2021-11-12 14:46:34 +01:00
av-dx dc291ee56e GUI: Add metadata XMLs and MetadataParser 2021-11-12 14:46:34 +01:00
av-dx 751490d82c GUI: Invalidate visible grid when toggling groups 2021-11-12 14:46:34 +01:00
av-dx c2999c09a2 GUI: Display fold indicator within header bounds 2021-11-12 14:46:34 +01:00
av-dx 27de66dbf6 GUI: Add hor. padding to row of game entries 2021-11-12 14:46:34 +01:00
av-dx 46c804986d GUI: Add group header formatting to grid view 2021-11-12 14:46:34 +01:00
av-dx 26e16916fe GUI: Add popup to select grouping method in grid view 2021-11-12 14:46:34 +01:00
av-dx 0c59bb0801 GUI: Find the last visible item via binary search
Store last visible item instead of an estimate of total items on screen
2021-11-12 14:46:34 +01:00
av-dx 449b18484b GUI: Handle empty _gridItems case when assigning entries 2021-11-12 14:46:34 +01:00
av-dx c19fb00a15 GUI: Proper scaling of indicator triangle on lowres theme 2021-11-12 14:46:34 +01:00
av-dx 01030ab10f GUI: Add variables for grid padding 2021-11-12 14:46:34 +01:00