Max Horn
4f8665fc83
COMMON: Move isFoo functions to namespace Common, add doxygen comments
2012-02-20 16:18:27 +01:00
Max Horn
658080deed
ALL: Avoid using is* macros from ctype.h
...
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Willem Jan Palenstijn
4182bdbd52
GRAPHICS: Remove unused variable
2012-02-11 22:54:36 +01:00
Bastien Bouclet
3becde4d1a
GRAPHICS: Switch to integer based JPEG IDCT
...
Based on public domain code, and explanations from :
http://halicery.com/jpeg/idct.html
Thanks.
2012-02-09 16:10:51 +01:00
Bastien Bouclet
de0425c7e2
GRAPHICS: Add support for JPEG files using a restart interval
...
Patch by Scott and clone2727
2012-02-09 16:10:51 +01:00
Johannes Schickel
66c3279b2f
GRAPHICS: Obtain pointer to dst surface after bounds checks in TTF renderer.
...
This should really make sure we are not drawing outside the surface bounds.
2012-02-02 02:39:41 +01:00
Johannes Schickel
6402d30874
GRAPHICS: Use monochrome font hinter for TTF's monochrome loading.
2012-02-02 02:39:40 +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
843b9f9665
GRAPHICS: Add a TTF font class using FreeType2.
2012-01-29 16:26:20 +01:00
Filippos Karapetis
103ae27d3a
GRAPHICS: Silence a false positive warning in MSVC
2012-01-07 22:45:59 +02:00
Johannes Schickel
1574d644e8
GRAPHICS: Let FontManager::setFont accept an "const BdfFont *".
...
As the documentation points out this method currently only works for BDF
fonts, thus it is safer to let it actually just accept such.
2012-01-07 01:16:33 +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
309e9a855d
GRAPHICS: Slight formatting fix.
2012-01-07 00:35:26 +01:00
Johannes Schickel
e454788a23
GRAPHICS: Whops. Fix misformatting introduced with 243de59
.
2012-01-06 15:59:16 +01:00
Johannes Schickel
d2a210feb5
GRAPHICS: Properly return 0 for late BDF cache loading fails.
2012-01-06 15:53:22 +01:00
Johannes Schickel
243de5950f
GRAPHICS: Slight cleanup in BDF code.
2012-01-06 15:52:55 +01:00
Johannes Schickel
abbc87e180
GRAPHICS: Slight formatting fixes in jpeg.cpp.
2012-01-06 15:51:10 +01:00
Johannes Schickel
08b6f28d54
GRAPHICS: Rework BDF font code.
2012-01-06 15:38:29 +01:00
Johannes Schickel
c2c8108f3b
GRAPHICS: The PNG decoder is not used by our GUI.
2012-01-05 10:33:31 +01:00
D G Turner
6a2522a142
GRAPHICS: Crash fix for bug #3466536 ("Assertion on MIDI gain slider").
...
This fixes the crash, but the Midi Gain slider (and probably any other
slider bar in modern theme) still distorts the left corner shape when
the slider thumb is at very small values...
2011-12-29 06:32:09 +00:00
Matthew Hoops
bdf14ed598
GRAPHICS: Fix PICT lines with large pitches
2011-12-19 15:21:35 -05:00
Eugene Sandulenko
71d6771be5
GUI: Implement dithering for tabs and round squares
2011-12-14 00:56:15 +00:00
Alyssa Milburn
50c9aa1bc1
GRAPHICS: Fix compiler warnings.
2011-12-10 14:16:35 +01:00
Eugene Sandulenko
9d3eb2ebd7
GUI: Refactor gradient calculation into separate method
2011-12-10 11:51:10 +00:00
Eugene Sandulenko
1dbc41d411
GUI: Move _gradientBytes to VectorRendererSpec
2011-12-10 11:51:10 +00:00
Eugene Sandulenko
04d1c1d54b
GUI: Implemented color dithering for background
2011-12-10 11:51:10 +00: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
Christoph Mallon
e578cb8976
ALL: Remove unnecessary forward declarations.
2011-11-21 15:59:19 +01:00
Johannes Schickel
61795739f8
COMMON: Rename Common::set_to to Common::fill.
...
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Eugene Sandulenko
0ecdf85280
GRAPHICS: Comment unused variables
2011-11-14 22:24:34 +02:00
Willem Jan Palenstijn
052177d136
COMMON: Remove some double-underscore defines (reserved)
2011-11-14 14:59:58 +01:00
Eugene Sandulenko
4c08fccf58
GUI: Add support for PNG images in themes
2011-10-23 23:44:14 +01:00
Matthew Hoops
3f0c9e0910
GRAPHICS: Fix PICT buffer overflow
2011-10-07 11:34:56 -04:00
Matthew Hoops
c0dcfc8060
GRAPHICS: Add support for true 32bpp DirectBits images
2011-10-07 11:33:09 -04:00
Matthew Hoops
75d2a43302
GRAPHICS: Add support for multiple CompressedQuickTime calls
2011-10-07 11:32:35 -04:00
Matthew Hoops
ed13991f37
GRAPHICS: Properly parse the CompressQuickTime header
2011-10-07 11:32:08 -04:00
Matthew Hoops
583bef28ff
GRAPHICS: Rewrite PictDecoder's opcode handling
...
In preparation for adding support for multiple CompressedQuickTime opcodes
2011-10-07 11:31:41 -04:00
Johannes Schickel
d9d366dbc9
GRAPHICS: Remove dithering code.
...
The code is not used anymore and neither the Mohawk developers, who expressed
that they might need dithering for some games, nor DrMcCoy, who wrote it, need
this code anymore.
In the worst case if anyone needs it again, we can revert this commit.
2011-09-06 16:51:04 +02:00
Johannes Schickel
b1db5fabee
GRAPHICS: Formatting.
2011-08-23 15:25:12 +02:00
Johannes Schickel
243779a7eb
GRAPHICS: Display warning in case the SJIS.FNT version does not match.
2011-08-23 15:15:29 +02:00
Sven Hesse
a1df3a408d
GRAPHICS: Fix indentation
2011-08-22 09:53:06 +02:00
Chris Warren-Smith
773f61253c
BADA: Fixup indentation using tabs in lieu of space chars
2011-08-21 16:39:09 +10:00
Chris Warren-Smith
a31b74f3e9
BADA: Code formatting and style changes following review
2011-08-21 16:39:08 +10:00
Chris Warren-Smith
3019b283f9
BADA: Prevent assertion failure when allocating zero bytes
2011-08-21 16:38:52 +10:00
Chris Warren-Smith
cfedd012d6
BADA: Updated code formatting in assignFontToUsage()
2011-08-21 16:38:01 +10:00
Chris Warren-Smith
59739a7a0e
BADA: Initial BADA port implementation
2011-08-21 16:37:06 +10:00
Matthew Hoops
c75bf3290d
GRAPHICS: Add a default Windows cursor
...
Based on the Mohawk one
2011-08-16 00:30:12 -04:00
Matthew Hoops
91ae23ebf2
GRAPHICS: Add cursor palette start/count functions
2011-08-16 00:19:29 -04:00
Matthew Hoops
1793d92c8b
GRAPHICS: Create base Cursor class for Mac/Win cursors
2011-08-16 00:05:31 -04:00