Commit Graph
4002 Commits
Author SHA1 Message Date
ysj1173886760 7a0d9546ce GUI: move kDebugLevelEventRec flag to global flag 2021-05-22 01:34:57 +02:00
ysj1173886760 1c4e15599f GUI: Register debug channels before run saveload-dialog 2021-05-22 01:34:57 +02:00
Lothar Serra Mari 0b89bc6438 I18N: Update translation datafile 2021-05-19 22:17:28 +02:00
Alex Bevilacqua 5d10fae9ca ASYLUM: update credits 2021-05-18 21:17:38 +03:00
Alex Bevilacqua 8eeed61c30 ASYLUM: generate credits 2021-05-18 21:17:38 +03:00
Cameron Cawley 03b9943ec0 Revert "GUI: Convert the cursor bitmap to the overlay format"
This reverts commit 26dc725ed2.
2021-05-15 00:20:00 +01:00
Cameron Cawley 26dc725ed2 GUI: Convert the cursor bitmap to the overlay format 2021-05-14 22:37:24 +02:00
a/ bad9008a89 DETECTOR: Modify getFileProperties to cache md5 results 2021-05-14 22:35:23 +02:00
a/ 45aa165b80 Modify getFileProperties to cache md5 results 2021-05-14 22:35:23 +02:00
Eugene Sandulenko faefa38c66 TESTBED: Fix GUI for HiDPI 2021-05-14 20:01:09 +02:00
Mathias Parnaudeau 032d030060 GUI: Fix leak of ManagedSurface in PicButtonWidget
Opening the load dialog, to display thumbnails into PicButtonWidget objects,
a call to setGfx creates a temporary ManagedSurface from a Surface but is
not instantiated, so not freed.

Same fix applied in GraphicsWidget which code is the same and reported
as potential memory leak by clang-tidy.
2021-05-12 10:40:56 +02:00
Torbjörn Andersson 73f43cdcb3 GUI: Fix build when USE_TTS is undefined 2021-05-03 16:47:30 +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
Eugene Sandulenko 12f107af67 GUI: Gracefully process broken images 2021-05-01 01:49:47 +02:00
Eugene Sandulenko eda31b9498 GUI: Initialized more variables 2021-05-01 01:49:47 +02:00
Eugene Sandulenko ad50a1471a GUI: Initialize class variables 2021-05-01 01:49:47 +02:00
Eugene Sandulenko 798a76ec56 DISTS: Added 2 MS-like fonts from wine to our fonts 2021-05-01 01:49:47 +02:00
Eugene Sandulenko 473a312b0e GUI: Fixing another corner case in mass add 2021-04-29 13:12:16 +02:00
Eugene Sandulenko cf84166316 GUI: Fix assert in GUI during MasAdd
If there is an entry without language specified, this would lead
to an assert. Yet another consequences of HashMap rewrite. Sigh.
2021-04-28 00:41:35 +02:00
SupSuper b3fd7c524d GUI: Recalculate tab variables consistently 2021-04-24 21:10:00 +01:00
Thierry Crozat 32c9ed7102 GUI: Do not list temporary targets in the launcher
When starting a game from the command line for a target that had
not previously been added, a temporary target is created. When
subsequently returning to the launcher, it would attempt to
include that temporary target in list of games (and crash when
trying to get the path with an unknown key error as those
temporary targets do not have a path value set, which is actually
how I noticed the issue).
2021-04-22 02:07:23 +01:00
Thierry Crozat 97f8a4e42e GUI: Fix getEditRect and implify rect handling in EditTextWidget
The same rect was hardcoded in three different places. Now it is
only in getEditRect and the other places use getEditRect.

There were actually differences between the rect width, but I put
that down to a bug in getEditRect. I see no reason to define the
right position of the rect as w - 2 - right_padding - left_padding.
Substracting the left padding would make sense if we were
specifying the rect width, but the Common:Rect constructor takes
the rect right location and not the width. There might have been
a confusion on that point by the developer who wrote that code
years ago. Also has the bottom right point is excluded, we should
only remove 1 and not 2.

This width that was smaller than it should be might have been the
reason why 6 additional pixels were arbitrarily added to the rect
passed to setTextDrawableArea later on.

There were actually
2021-04-22 01:40:12 +01:00
Thierry Crozat ba0dabd5ca GUI: Fix position of character after caret
There was a discrepency in the vertical position of the text in
the drawText call on one hand, and in the getEditRect() and rect
passed to setTextDrawableArea() on the other. This discrepency
was introduced in commit c47b204ac. Since getEditRect() is used
in EditableWidget::drawCaret() to draw the character after the
caret (when erasing the caret) this caused this vertical shift.

This fixes bug #12336.
2021-04-22 01:40:12 +01:00
Eugene Sandulenko 27c6566097 GUI: Draw border for tooltip in the remastered theme. Bugreport #10935 2021-04-20 23:04:05 +02:00
Eugene Sandulenko c84a78b778 GUI: Make Tooltip padding configurable and scalable 2021-04-20 19:03:09 +02:00
Eugene Sandulenko edef02acda GUI: Add tooltips to Cancel/Apply/OK buttons in Options. Bugreport #10313 2021-04-20 01:46:05 +02:00
Thierry Crozat 982ccb12eb COMMON: Add GUIO_NOLANG GUI option to hide the lang selector 2021-04-19 23:10:12 +01:00
Cameron Cawley da960cd939 GUI: Add EE to the GUI keymap 2021-04-18 15:28:51 +02:00
Cameron Cawley ac15a0017a GUI: Fix screen resizing when EE is active 2021-04-18 15:28:51 +02:00
Cameron Cawley 376defbdbf GUI: Minor simplification to the EE graphics code 2021-04-18 15:28:51 +02:00
Lothar Serra Mari 50b6f19b07 I18N: Rebuild translations data file 2021-04-18 14:43:45 +02:00
Eugene Sandulenko c0f33c73f0 GUI: Fix scale sync for GraphicsWidget 2021-04-18 10:07:40 +02:00
Cameron Cawley 9818b47554 GUI: Also use UTF-8 for paragraphs in the credits 2021-04-18 01:39:49 +01:00
Cameron Cawley cb6c058c7d GUI: Use UTF-8 for the credits 2021-04-18 01:31:01 +01:00
D G Turner 578555ab1a GUI: Fix GCC Compiler Warning 2021-04-18 01:29:18 +01:00
Eugene Sandulenko 36d19d68c1 GUI: Fix formatting for I18N comments 2021-04-17 22:19:47 +02:00
Eugene Sandulenko 793edb804d GUI: Added missing widget to the Modern theme 2021-04-17 21:54:23 +02:00
Eugene Sandulenko bcecf62f17 GUI: Added comments for translators for GUI scale options 2021-04-17 21:25:29 +02:00
Eugene Sandulenko 5665790bae GUI: Avoid double scaling for Dialog insets 2021-04-17 20:09:08 +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 9bcffc97ee GUI: Fix regression in PictureWidget which led to double scaling 2021-04-17 19:41:09 +02:00
Eugene Sandulenko 91832bf9d8 SYMBIAN: Remove old Keys Dialog, now the global KeyMapper is used. PR#2712 2021-04-17 19:41:09 +02:00
Eugene Sandulenko 69ea52c2d0 GUI: Scale thumbnails in saveload dialog in HiDPI 2021-04-17 15:04:36 +02:00
Eugene Sandulenko 36755f2276 GUI: Add parameter for optional scaling GraphicsWidget 2021-04-17 15:04:35 +02:00
Eugene Sandulenko 1009078024 GUI: Speedup rendering in EE 2021-04-15 23:44:04 +02:00
Eugene Sandulenko 3e84b88400 GUI: Scale EE in About dialog 2021-04-15 23:44:04 +02:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Eugene Sandulenko 71888ad4db GUI: Switch to Amiga font in EE rendering 2021-04-15 21:20:35 +02:00
Eugene Sandulenko fa7c0bf4c2 GUI: Clarify the moved Topaz font data 2021-04-15 17:45:38 +02:00