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
Johannes Schickel
9f3fbe1bd7
GRAPHICS/GUI: Implement kerning support for Font.
...
This adapts the related graphics code, which is the generic Font API and the
TTF font implementation.
It furthermore adapts the GUI to properly take care of kerning in text input
widgets.
2012-01-29 16:26:20 +01:00
Johannes Schickel
d21ae1aa40
GUI: Add support for loading TTF files with ISO-8859-1 charset.
2012-01-29 16:26:20 +01:00
Johannes Schickel
050b8e3360
GUI: Rework how the default localized font is managed.
...
Now we set the default localized font to the "text_default" font of the
currently active theme and default to the big GUI font in case none is
specified properly.
2012-01-07 01:03:07 +01:00
Johannes Schickel
0d3e79cf77
GUI: Simplify font loading a bit more.
2012-01-07 00:35:26 +01:00
Johannes Schickel
47edab71e8
GUI: Do an case-insensitive filename comparison.
...
Should be a bit safer, in case there's files with different cases, which match
by chance.
2012-01-06 22:27:26 +01:00
Johannes Schickel
4531f0173e
GUI: Slight cleanup for font/image loading.
2012-01-06 22:24:12 +01:00
MaximRussia
ad4471f70c
GUI: Improved pop up and scrollbar arrows look
...
Previous triangle drawing was all wrong, rewrote it from the scratch.
Added padding to drawsteps in stx files
2011-12-07 14:04:10 +00:00
Eugene Sandulenko
5b3b73c523
GUI: Added icon to clear button. Reverted PNG support
2011-10-24 05:18:49 +01:00
Eugene Sandulenko
59474ca128
GUI: Replaced search icon with a better looking one.
...
Icons are by Yusuke Kamiyamane. http://p.yusukekamiyamane.com/
2011-10-23 23:44:14 +01:00
Eugene Sandulenko
4c08fccf58
GUI: Add support for PNG images in themes
2011-10-23 23:44:14 +01:00
Eugene Sandulenko
ed2cb9a6b3
GUI: Added debug ouput for determining loaded theme
2011-10-19 13:48:01 +01:00
Chris Warren-Smith
ed07b99b22
BADA: Misc changes merged from appstore release
2011-10-18 23:22:25 +10:00
Johannes Schickel
fa5f8dc703
GRAPHICS: Rename NewFont to BdfFont.
2011-07-01 21:53:01 +02:00
Johannes Schickel
8201df7bb6
GRAPHICS: Move NewFont code to a separate file.
2011-07-01 21:10:25 +02:00
Thierry Crozat
6b13782967
GRAPHICS: Move genLocalizedFontFilename() to FontManager class
...
It was defined in ThemeEngine class , but I moved it to make it
possible to use localized font in other places.
2011-06-06 23:20:09 +01:00
Max Horn
91b889e2d3
COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette
2011-06-04 11:55:56 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Johannes Schickel
473337effd
GUI: Allow .zip files with case differing from ".zip" as theme files too.
...
Formerly our code used "hasSuffix" to check for a ".zip" suffix. Since
hasSuffix does a case-sensitive match that would not work, in case the file
was called "scummmodern.ZIP" instead of "scummmodern.zip" for example.
To fix that I am using a case-insensitive matchString instead now.
2011-05-07 15:49:57 +02:00
Johannes Schickel
16f1b51e2a
GUI: Clean up localized font filename generation.
2011-05-05 20:07:37 +02:00
Johannes Schickel
71bdb86e02
Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
...
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16
Conflicts:
graphics/png.cpp
2011-05-01 16:54:45 +02:00