Commit Graph

134 Commits

Author SHA1 Message Date
Lothar Serra Mari
d59b31238e GUI: Add comment regarding the 1ms delay we need with vsync enabled 2021-11-21 01:21:41 +01:00
Lothar Serra Mari
d272bc5d65 GUI: Fetch vsync capability from backend instead of ConfMan 2021-11-21 01:21:41 +01:00
Lothar Serra Mari
7a01729d1f GUI: Fix cursor stuttering with vsync enabled 2021-11-21 01:21:41 +01:00
Eugene Sandulenko
d00f894aa6
GUI: Refresh Grid View after icon packs were downloaded 2021-11-20 00:55:44 +01:00
Eugene Sandulenko
c82b1f88bc
GUI: Properly check gui-icons.dat in themepath
themepath is never added to SearchMan, thus File::open() does
not work for it
2021-11-18 22:38:42 +01:00
Torbjörn Andersson
1402a78a01 Revert "GUI: Fix memory leak"
I suspect the file object is used later, so I can't delete it here.

This reverts commit c7f4d96a9d.
2021-11-15 10:00:18 +01:00
Torbjörn Andersson
c7f4d96a9d GUI: Fix memory leak 2021-11-15 09:49:38 +01:00
Eugene Sandulenko
a965e01857
GUI: Do not leak memory on gui-icons.dat opening failure 2021-11-14 23:00:13 +01:00
Eugene Sandulenko
72adc6ba2b
GUI: Simplify gui-icons.dat searching 2021-11-14 22:53:55 +01:00
Eugene Sandulenko
3d82c0e8b4
GUI: Fix loading gui-icons.dat from Windows resource 2021-11-14 22:23:17 +01:00
Torbjörn Andersson
9c206acf06 GUI: Fix memory leak 2021-11-14 18:49:41 +01:00
Eugene Sandulenko
502a385ec7
GUI: Guard against double inserting of same objects to the trash queue 2021-11-14 14:39:56 +01:00
Eugene Sandulenko
1008f64d74
GUI: Added support for multiple icon archives 2021-11-12 16:14:19 +01:00
Eugene Sandulenko
a5844fd8da
GUI: Added possibility to keep gui-icons.dat in iconspath 2021-11-12 15:47:22 +01:00
Eugene Sandulenko
1661fa1ba6 GUI: Read icons and metadata from gui-icons.dat 2021-11-12 14:46:34 +01:00
Alexandre Detiste
6044504762 JANITORIAL: typos
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
Scott Percival
0112fab176 EVENTRECORDER: Filter GUI redraws from the logs 2021-09-09 19:32:02 +02:00
Cameron Cawley
e8c54ed7aa DS: Work around issues with GUI scaling at low resolutions 2021-08-20 17:43:19 +01:00
Thierry Crozat
9fcd67b2a7 GUI: Never scale the GUI below 320x200 2021-08-15 09:52:03 +01:00
Thierry Crozat
ad31dfc8d5 GUI: Handle the GUI Scale option as a scaling rather than base resolution
Now that we can get an accurate HiDPI screen scaling from OSystem,
defaulting to using that seems to make sense. But we may still want
to use a slightly different scaling. The GUI scale option allows
that by providing a scaling (in percentage) with which to multiply
the HiDPI scaling.

I think it works better than a base resolution as it avoids having
the GUI getting bigger or smaller when we resize the window.

This commit keeps a popup widget, but this could be changed with
 a slider if we want more fine grain control.
2021-08-13 21:41:33 +01:00
Thierry Crozat
abf782c670 COMMON: Remove kFeatureHiDPI from OSystem and use getHiDPIScreenFactor instead 2021-08-13 21:41:33 +01:00
Thierry Crozat
cbb627a40b COMMON: Change TransMan builtin language to "en" instead of "C" 2021-08-04 19:28:47 +01:00
SupSuper
782cd55c31 GUI: Fix RTL Add Game dialog leaving UI in a broken state (#12765)
Make sure we clear all RTL dialog paddings once we go back to the launcher.
2021-07-28 09:37:25 +01:00
sluicebox
85f789a8ad GUI: Fix shading being applied more than once 2021-07-28 07:29:40 +02:00
antoniou79
da461da6f6 GUI: Fix tooltip behavior to be less interruptive
The tooltip will show only if mouse cursor was moved but not on a hovered focused editText field

Changes and implications in this commit:
- Fix _lastMousePosition coordinates and time being updated upon giving focus to the tooltip
- Check for mouse cursor movement first in the decision for showing the tooltip, then check if sufficient time for mouse resting position has passed (kTooltipDelay).
- Prevents showing a tooltip for a widget if it is an editable field (editText) and has both mouse hovering above it and the current focus.
This is so that typing text is not interrupted / slowed down by a periodical display of the tooltip, if the mouse is hovering over the same text field that the user is editing.
- If mouse cursor is moved but lands on the same widget as the one that had its tooltip shown last, then show the tooltip but after a different (larger) delay kTooltipSameWidgetDelay.
- Still shows tooltip for other widgets, including editText ones, if the mouse is hovered over them and they are not the current focused editText widget.

The bug was mentioned for the Android port on the forums here:
https://forums.scummvm.org/viewtopic.php?p=95531#p95531
However, it is not Android specific, even though the slowdown is a lot more noticeable on an Android device.
2021-06-19 14:39:34 +02:00
Martin Gerhardy
9d82fa51df COMMON: removed USE_TTS check from engines
OSystem now just returns a nullptr if there is no text to speech manager instance
(because none is compiled into the binary, or the system doesn't provide support
for it). This removed the need for the engine authors to add scummvm osystem compile
time options checks into their engine code
2021-05-03 14:13:41 +03:00
Cameron Cawley
0aa8aea4f7 GUI: Remove default mappings for the EE action 2021-05-01 21:06:18 +01:00
Cameron Cawley
da960cd939 GUI: Add EE to the GUI keymap 2021-04-18 15:28:51 +02:00
Eugene Sandulenko
bba558770d
GUI: Expose base GUI scaling to GUI. This bumps theme version. 2021-04-17 19:41:09 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Orgad Shaneh
fd225f2250 GUI: Fix GCC warning
Signed/unsigned comparison.
2021-04-11 23:15:34 +03:00
Eugene Sandulenko
fad56e39d1 GUI: Scale theme images 2021-04-11 21:21:44 +02:00
Eugene Sandulenko
013ce7760a GUI: Query backend on HiDPI and use finer theme rendering 2021-04-11 21:21:44 +02:00
Eugene Sandulenko
b29f457548 GUI: Scale theme on loading 2021-04-11 21:21:44 +02:00
Eugene Sandulenko
08f927b7ab GUI: Lock ThemeLayout to the computed base dimensions 2021-04-11 21:21:44 +02:00
Eugene Sandulenko
0f925f3d87 GUI: Dropped g_gui.getWidth() and getHeight() 2021-04-11 21:21:44 +02:00
Eugene Sandulenko
a0d4162a2b GUI: Compute base scale factor and set it for ThemeParser 2021-04-11 21:21:44 +02:00
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
Le Philousophe
577322f3fe GUI: Don't leak theme and TextDrawData when loading fails 2021-02-17 12:57:23 +00:00
Cameron Cawley
f50b472840 DS: Load the selected theme on startup 2021-02-04 01:59:14 +01:00
Thierry Crozat
6eb68493aa GUI: Do not block return to the launcher when a dialog is shown
When accessing a GUI dialog from a game, such as to save or load
a game, we are still able to quit if the force RTL option is not
enabled. But when that option is enabled, it only returned to
the launcher after closing the dialog, which is strange and a
discrepency with the quit behaviour. This commit implements the
same behaviour for RTL as we have for Quit.
2021-01-21 00:12:33 +00:00
Thierry Crozat
32bbf489e9 GUI: Add exitLoop() method to GuiManager
The idea is to allow backends to start a game even after the
LauncherDialog has been created, and for that they need a way
to close the existing GUI dialogs.
2020-09-13 00:21:34 +01:00
aryanrawlani28
12a4af77bd GUI: Code cleanup 2020-06-22 00:03:02 +02:00
aryanrawlani28
54279790b7 GUI: RTL: Enable RTL by default for Hebrew 2020-06-22 00:03:02 +02:00
aryanrawlani28
0f40989633 GUI: Code cleanup, add comments about RTL 2020-06-22 00:03:02 +02:00
aryanrawlani28
5e0d5b8322 GUI: RTL: Disable RTL by default 2020-06-22 00:03:02 +02:00
aryanrawlani28
a832e7f423 GUI: RTL: Allow switching from one layout to other after selecting languages
GUI: RTL: Add option for forced RTL from ConfMan
2020-06-22 00:03:02 +02:00
aryanrawlani28
ab4ac760fb GUI: RTL: Disable usage of RTL layout by default 2020-06-22 00:03:02 +02:00
aryanrawlani28
d968665110 GUI: Code cleanup and small issue fixes 2020-06-22 00:03:02 +02:00
aryanrawlani28
a7fe8ad7d8 GUI: Rename some variable and fix review issues 2020-06-22 00:03:02 +02:00