aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
AgeCommit message (Collapse)Author
2012-02-03GUI: Put bitmap items in the on-screen draw queue when doing buffering.Johannes Schickel
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-01-29GUI: Fix compilation with --disable-translation.Johannes Schickel
2012-01-29GUI: Fix anti-aliased font drawing of checkbox/radio button texts.Johannes Schickel
Formerly the text background was not restored thus every time it got redrawn the text got thicker.
2012-01-29GRAPHICS/GUI: Implement charset mapping for TTF fonts.Johannes Schickel
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-29GRAPHICS/GUI: Implement kerning support for Font.Johannes Schickel
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-29GUI: Add support for loading TTF files with ISO-8859-1 charset.Johannes Schickel
2012-01-07GUI: Rework how the default localized font is managed.Johannes Schickel
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-07GUI: Simplify font loading a bit more.Johannes Schickel
2012-01-06GUI: Do an case-insensitive filename comparison.Johannes Schickel
Should be a bit safer, in case there's files with different cases, which match by chance.
2012-01-06GUI: Slight cleanup for font/image loading.Johannes Schickel
2011-12-07GUI: Improved pop up and scrollbar arrows lookMaximRussia
Previous triangle drawing was all wrong, rewrote it from the scratch. Added padding to drawsteps in stx files
2011-10-24GUI: Added icon to clear button. Reverted PNG supportEugene Sandulenko
2011-10-23GUI: Replaced search icon with a better looking one.Eugene Sandulenko
Icons are by Yusuke Kamiyamane. http://p.yusukekamiyamane.com/
2011-10-23GUI: Add support for PNG images in themesEugene Sandulenko
2011-10-19GUI: Added debug ouput for determining loaded themeEugene Sandulenko
2011-10-18BADA: Misc changes merged from appstore releaseChris Warren-Smith
2011-07-01GRAPHICS: Rename NewFont to BdfFont.Johannes Schickel
2011-07-01GRAPHICS: Move NewFont code to a separate file.Johannes Schickel
2011-06-06GRAPHICS: Move genLocalizedFontFilename() to FontManager classThierry Crozat
It was defined in ThemeEngine class , but I moved it to make it possible to use localized font in other places.
2011-06-04COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPaletteMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-07GUI: Allow .zip files with case differing from ".zip" as theme files too.Johannes Schickel
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-05GUI: Clean up localized font filename generation.Johannes Schickel
2011-05-01Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".Johannes Schickel
For further discussion check here: https://github.com/scummvm/scummvm/pull/16 Conflicts: graphics/png.cpp
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-26GUI: Fix warning on systems where char is unsignedMax Horn
2011-04-24GUI: Add basic validity check to ThemeEngine::themeConfigParseHeader ↵Littleboy
(workaround for #3103051) When loading a corrupted zip, the data returned for THEMERC will be garbage, which will cause an assert in isspace() when trying to trim the data. This checks that the first character of the header is in the range [0;127] and bails out if not.
2011-04-17GUI: Prefer Surface::create taking a PixelFormat over the one taking a byte ↵Johannes Schickel
depth.
2011-04-03GUI: ThemeEngine.cpp/.h formatting fixes.Johannes Schickel
2011-02-25Revert "GUI: Properly clear the screen buffer"dhewg
This reverts commit c8551b80dd917c35d367c1f15f4b9c2618da3684. Turns out the flicking comes from an updateScreen() call in android's clearScreen(). Besides, this broke GMM... a little
2011-02-24GUI: Fix two-step renderingdhewg
This is used when changing directories in the 'add game' dialog or when choosing another tab in the option dialog. Only blit to the overlay on the final pass. Gets rid of highly annoying flickers on androids
2011-02-24GUI: Properly clear the screen bufferdhewg
Don't operate on the overlay, it might be a pointer to a texture used by the hardware. This get's rid of some annoying flickers on androids
2011-02-14GUI: Update cursor palette handling for RGBA->RGB change.Johannes Schickel
2010-11-30I18N: Don't build TranslationManager when translation is disabled.Jordi Vilalta Prat
svn-id: r54684
2010-11-15GUI: Fix bug in ThemeEngine::addFont related to localized fontsMax Horn
Basically, it was remembering the font under its non-localized name. This resulted in a leak, and potentially could have caused the wrong font to be used in a localization. svn-id: r54256
2010-11-15GUI: Tweak ThemeEngine methods to use Common::String params & const qualifierMax Horn
svn-id: r54255
2010-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-09-28GUI: Replace GUI_ENABLE_BUILTIN_THEME by DISABLE_GUI_BUILTIN_THEMEMax Horn
svn-id: r52936
2010-09-25GUI: Partial fix to bug #3075649 Fonts not found with buit-in themeThierry Crozat
When the locale font are not found when loading the theme, it now fallbacks to default language (i.e. English) and default font. For this to work I had to move the TranslationManager initialization before the Theme is loaded. Therefore it is now initialized when the GuiManager is constructed. svn-id: r52896
2010-09-14GUI: Remove dead code.Johannes Schickel
This code was added when tooltip support was added. Since we changed the way how tooltips are drawn later on, this code is not required anymore. Actually it was never used, but it could've been used to save/restore the state of the GUI for the tooltips. svn-id: r52717
2010-09-12i18n: Add lowres context in a few places.Thierry Crozat
I also changed the english text for the GUI Renderer items in 1x mode as the text was tool long and cut. svn-id: r52683
2010-08-30I18N: Add "lowres" context for several GUI strings when in 1x mode.Thierry Crozat
This enables translators to use a different translation for these strings in 1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes. svn-id: r52461
2010-08-20GUI: fix crash when localized font could not be foundThierry Crozat
The ThemeEngine had a fallback implemented to use the non-localized font if the localized one (e.g. for Hungarian) could not be found. However the fallback was not working. Now it is working. svn-id: r52243
2010-08-01GUI: Fix loading BDF fonts from theme archives.Johannes Schickel
svn-id: r51585
2010-07-24GUI: Fix overdrawn tabsEugene Sandulenko
If tabs are scrolled, do not draw those which are supposed to be invisible. svn-id: r51268
2010-07-23GUI: Fix tooltip drawingEugene Sandulenko
With help of Tanoku tooltips were switched from widgets to dialogs which helped to fix nasty bug with background not being restored. Although it is basically a hack around inconsistent font backbuffering in our GUI code, for the time being it is feasible. The patch was extended with way to specify tooltip background in the theme file. svn-id: r51217
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-07-19GUI: Enhance ThemeEngine to find theme .zip files using SearchManMax Horn
This is based on the Android specific patch found under: backends/platform/android/scummvm-android-themeengine.patch After some testing we should be able to get rid of that custom patch. svn-id: r51028
2010-06-29enable reading ZIP archives even without USE_ZLIBRobert Špalek
our module unzip.cpp can read uncompressed ZIP archives even without zlib. if some of the files inside are compressed and zlib is not linked in, an error is returned. svn-id: r50483
2010-06-28i18n: Add support for locale-dependent fontsEugene Sandulenko
Currently it ws not decided where to put fonts, but if you put BDF files into themepath, they will get picked up. The font name has to contain same codepage specification as in the .po file, i.e. fixed5x8-iso-8859-5.bdf for Cyrillic codepage. In case the font does not exist, default will be used. All built in fonts get proper names. TODO: Currently there is a bug with our font cacher. Font clR6x12-iso-8859-5 is empty after loading from FCC file. Reason is unknown. svn-id: r50448