Commit Graph
3567 Commits
Author SHA1 Message Date
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
Bastien Bouclet 089a089b2a GRAPHICS: Don't assert when decoding YUV data with an odd height.
Myst 3 has bink movies with an odd height. The last line won't be decoded.
2012-01-30 10:02:18 +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
Einar Johan T. Sømåen 574e09f0ef JANITORIAL: Add missing newline at end of file 2012-01-29 14:20:01 +01:00
Pawel Kolodziejski b15eee129d sync with scummvm 2012-01-28 10:44:25 +01:00
Giulio Camuffo cd1eadd190 GRAPHICS: Just copy the buffer when it's the same pixel format. 2012-01-25 18:06:39 +01:00
Giulio Camuffo 27715543e8 GRAPHICS: Relicense pixelbuffer.(h|cpp) to GPLv2. 2012-01-25 11:40:01 +01:00
Giulio Camuffo c73da71b2f GRAPHICS: New PixelBuffer::getRawBuffer(int) function. 2012-01-24 21:36:47 +01:00
Giulio Camuffo b42bbe5259 TinyGL: Support for different color modes, part 2. 2012-01-24 21:36:47 +01:00
Giulio Camuffo 158a19df31 TinyGL: Support for different color modes, first part. 2012-01-24 21:36:46 +01:00
Paweł Kołodziejski 09a532d5d0 Merge pull request #463 from somaen/mergemyst3
Add a WIP Myst III Exile engine
2012-01-10 00:32:52 -08:00
Einar Johan T. Sømåen 3394bd15ef TINYGL: Add tglColor4ub, to have less diff between tgl-code and gl-code 2012-01-10 09:10:16 +01:00
Einar Johan T. Sømåen 97a3fec971 TINYGL: Add conversion RGB/BGR -> RGBA
Thus allowing for such textures to be loaded without
needing external conversion before creating them.
2012-01-10 08:44:18 +01:00
Filippos Karapetis 103ae27d3a GRAPHICS: Silence a false positive warning in MSVC 2012-01-07 22:45:59 +02:00
Bastien Bouclet b77469a4d3 Merge remote-tracking branch 'origin/master' into sprint
Conflicts:
	backends/events/sdl/sdl-events.cpp
	backends/events/sdl/sdl-events.h
	video/bink_decoder.cpp
2012-01-07 08:43:26 +01: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
Pawel Kolodziejski 626e91f23a rename -> ResidualVM 2012-01-06 23:15:48 +01:00
Pawe³ Ko³odziejski a5479cfe83 sync with scummvm 2012-01-06 22:56:21 +01:00
Bastien Bouclet a283b82d84 GRAPHICS: Duplicate the YUV decoder, add YUVA feature.
The YUV decoder can now be modified without risking colliding with
changes from ScummVM.
2012-01-06 17:59:17 +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
Paweł Kołodziejski 9d2203c8ea Merge pull request #457 from guillemj/master
Assorted segfault fixes
2012-01-06 05:41:46 -08:00
Pawel Kolodziejski 4fa79cd323 rename -> ResidualVM 2012-01-06 11:37:57 +01:00
Guillem Jover a50201481d TinyGL: Do not underflow on specular light calculation
When casting from float to int, the value can underflow making the index
negative which causes a segmentation fault when accessing the array.

Fixes #320
2012-01-05 20:39:53 +01:00
Johannes Schickel c2c8108f3b GRAPHICS: The PNG decoder is not used by our GUI. 2012-01-05 10:33:31 +01:00
Bastien Bouclet ad835de85d VIDEO: Implement Bink seeking using subclassing
So that the code is easier to merge with ScummVM
2012-01-05 09:33:05 +01:00
Bastien Bouclet 7a7b9188f3 Merge branch 'master' into sprint 2012-01-04 17:36:12 +01:00
Bastien Bouclet d677c4b3d2 GRAPHICS: Add support for decoding bitmaps to 32bits surfaces 2012-01-04 10:52:55 +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
Matthew Hoops 00279659b2 Merge remote branch 'upstream/master' into pegasus
Conflicts:
	video/qt_decoder.cpp
2011-12-12 15:25:28 -05: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
Giulio Camuffo f1f1b32490 TinyGL: Fix enabling of lights. Fix #393 2011-10-28 18:23:17 +02:00