195 Commits

Author SHA1 Message Date
Alexander Tkachev
3d636617d0 GUI: Use clipping everywhere 2016-07-03 12:24:46 +02:00
Alexander Tkachev
6fd6043391 GUI: Fix blitAlphaBitmapClip() 2016-07-03 12:24:11 +02:00
Alexander Tkachev
4b87563792 GUI: Add blipClip() 2016-07-03 12:23:57 +02:00
Alexander Tkachev
80412a4139 GUI: Add drawTabClip() 2016-07-03 12:22:10 +02:00
Alexander Tkachev
f22d11953d GUI: Add drawSquareClip() 2016-07-03 12:21:09 +02:00
Alexander Tkachev
559ca37daf GUI: Add VectorRendererSpec::drawTriangleClip() 2016-07-03 12:20:37 +02:00
Alexander Tkachev
425d963bd3 GUI: Fix ThemeItemTextData's dirty rectangle 2016-07-03 12:17:26 +02:00
Alexander Tkachev
fca0f0ed34 GUI: Make PopUpWidget clip 2016-07-03 12:16:43 +02:00
Alexander Tkachev
8f2d35b0b8 GUI: drawRoundedSquareClip() 2016-07-03 12:16:26 +02:00
Alexander Tkachev
3d2730a0dd GUI: clippingRect propagated deeper 2016-07-03 12:15:51 +02:00
Alexander Tkachev
d7278cc48b GUI: Prepare button to be clipped 2016-07-03 12:14:45 +02:00
Alexander Tkachev
49caaf77a1 GUI: Add ScrollContainer 2016-07-03 12:10:56 +02:00
Alexander Tkachev
08727857bc GUI: Use boss's x/y/w/h instead of clippingArea 2016-07-03 12:10:26 +02:00
Eugene Sandulenko
04bb80bc71 GUI: Fix regression 2016-06-06 18:43:36 +02:00
Eugene Sandulenko
8e4f892ef9 GUI: Fixed negative index check 2016-06-06 08:05:06 +02:00
Eugene Sandulenko
786780ccb9 GUI: Prevent potential negative index access 2016-06-05 23:10:20 +02:00
Eugene Sandulenko
61235e7f55 GUI: Fix possible negative index access 2016-06-05 23:10:20 +02:00
Eugene Sandulenko
a612b0a173 GRAPHICS: Restore layout debugging capabilities 2016-06-01 13:16:12 +02:00
Eugene Sandulenko
c7ad2155fc GUI: More object initialization cleanup 2016-06-01 13:16:12 +02:00
Ori Avtalion
ccc7506666 GUI: Fix constant names mentioned in comment 2016-03-23 18:01:13 +02:00
Johannes Schickel
a7dba17fec GUI: Fix pointer formatting in ThemeEngine.cpp. 2016-01-24 03:41:49 +01:00
Johannes Schickel
5a63ee5375 GUI: Use "button" instead of "btn" in variable names. 2016-01-24 03:41:29 +01:00
Bastien Bouclet
2d86f6da9c GRAPHICS: Introduce a size mode for TrueType fonts
Allows to match Windows font size selection by converting font heights
to point sizes using the TrueType tables.
2015-12-21 18:41:14 +01:00
Bertrand Augereau
91e6abd305 GUI: Use after free 2015-11-09 23:57:36 +01:00
Bertrand Augereau
06d83f148f GUI: strncat needs a destination C-string 2015-11-09 23:57:29 +01:00
Eugene Sandulenko
7d58a50c46 GUI: Removed 64k limit on built-in theme XML size 2015-11-07 13:26:56 +01:00
Johannes Schickel
5b03ba04d7 GRAPHICS: Allow client code to specify TTF render mode.
This allows clients to use the default FreeType2 render mode instead of light.
We really only use light as default because that's what looks best with the
font we use in our GUI right now (which is the same reason why formerly light
was always used in non-monochrome mode).
2014-06-09 01:04:47 +02:00
Matthew Hoops
740b6e8fbd IMAGE: Move all ImageDecoders to image/ 2014-02-28 00:27:28 -05:00
Joel Teichroeb
0ccc918940 GUI: Fix for potential bad cursor palette access in warning case.
Previously, if the colorsFound exceeded the maximum number of
cursor colors, a bad access to the cursor palette buffer could be
performed before the warning was emitted. This reordering avoids
that.
2013-11-14 15:11:16 +00:00
Eugene Sandulenko
8a340007ea Merge pull request #361 from rundfunk47/guiimprovements
GUI: Various GUI Improvements
2013-08-22 05:31:23 -07:00
Johannes Schickel
74a056e746 GUI: Clear dirty rects when initializing ThemeEngine.
This avoids nasty invalid writes to the overlay when the overlay is being
resized.
2013-08-19 00:06:46 +02:00
Narek Mailian
887a99e211 GRAPHICS: Added changes and improved code from inisider/scummvm (partial text)
Includes code from https://github.com/inisider/scummvm/ , which has been
squashed and bugfixed
2013-08-16 20:54:08 +02:00
Narek Mailian
1f1d35bd3d GRAPHICS: Allow VectorRenderer and ThemeEngine to init with 4BPP 2013-08-08 08:35:08 +02:00
Narek Mailian
f545a2f08f GUI: Change name of GUI-renderers to remove "16-bit" 2013-08-08 08:35:08 +02:00
Johannes Schickel
969a33a32d GUI: Allow GUI cursor creation to work with abitrary 2/4Bpp formats. 2013-08-08 08:35:07 +02:00
Johannes Schickel
b1bd9322a1 GUI: Take advantage of Surface::getPixels. 2013-08-03 04:02:50 +02:00
Johannes Schickel
103e926c07 GUI: Prefer getBasePtr instead of direct Surface::pixels access. 2013-08-03 04:02:48 +02:00
Eugene Sandulenko
f59512c47e RECORDER: Implement Events Recorder 2013-05-17 00:18:09 +03:00
Johannes Schickel
4f7c65af0e Merge pull request #260 from lordhoto/new-chooser.
New save/load chooser

Conflicts:
	gui/saveload.cpp
2012-08-12 14:49:28 +02:00
Johannes Schickel
b4196e48b1 GRAPHICS: Add a DPI parameter to loadTTFFont.
Will be used by WME.
2012-08-09 03:13:00 +02:00
Johannes Schickel
d3e5763276 GUI: Allow the user to switch between list and thumbnail based load chooser. 2012-06-29 15:52:56 +02:00
Johannes Schickel
aec9b9e22a ALL: Let overlay related methods in OSystem take a void * and use a proper pitch values.
This is a first step to get rid of OverlayColor, which is a requirement for
proper 4Bpp overlay support.
2012-06-16 04:17:14 +02:00
Johannes Schickel
a401f0a19e ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.

Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Oleksiy Kurochko
e6c317a922 GUI: Implemented pressed state for buttons 2012-05-03 19:32:08 +03:00
Oleksiy Kurochko
ec32ccb6d6 GUI: Move predictive dialog to common gui 2012-03-25 12:21:38 +03:00
Matthew Hoops
426c81a7a7 GRAPHICS: Rewrite ImageDecoder to have an improved API
The new bitmap decoder class is based off the Mohawk one, and now has 8bpp decoding capability.
2012-03-20 01:06:47 +01:00
Johannes Schickel
8b172f0cef GUI: Put bitmap items in the on-screen draw queue when doing buffering.
This fixes bug #3482461 "GUI: X image on clear buttons might be vanishing".

I am afraid I can't really tell why this fixes the bug though.

This is a backport of a small part of MaximRussia's changes to the queueing
code. So thanks to him for this fix.
2012-02-03 19:15:09 +01:00
Johannes Schickel
6895ea9ea1 GUI: Fix compilation with --disable-translation. 2012-01-29 19:18:36 +01:00
Johannes Schickel
b0dfd08ff9 GUI: Fix anti-aliased font drawing of checkbox/radio button texts.
Formerly the text background was not restored thus every time it got redrawn
the text got thicker.
2012-01-29 16:26:20 +01:00
Johannes Schickel
f63df3bf7b GRAPHICS/GUI: Implement charset mapping for TTF fonts.
The charsets used by the translations now need to have a "$(name).cp" file,
which contains an charset index => unicode mapping. Otherwise
create_translations will fail.
2012-01-29 16:26:20 +01:00