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
Johannes Schickel
28004ac8d9
GRAPHICS: Slight formatting fix.
2011-08-07 15:30:37 +02:00
Christoph Mallon
e35b4f20c1
GRAPHICS: Simplify the interface of Graphics::loadThumbnail().
...
Now it returns the Surface, so the caller does not need to create one and pass it.
2011-08-07 15:19:09 +02:00
Christoph Mallon
23a0f5318c
JANITORIAL: Remove trailing empty lines.
2011-08-07 13:53:33 +02:00
Eugene Sandulenko
2fa17c44ed
JANITORIAL: Remove SVN keywords
2011-08-06 11:30:47 +01:00
clone2727
6370984b22
Merge pull request #50 from clone2727/bink
...
Add support for Bink video to SCUMM HE
2011-07-18 16:04:39 -07:00
athrxx
c06c05a769
GRAPHICS: remove char/line spacing handling from sjis code
...
(as discussed with LordHoto this should rather be handled in the engine)
2011-07-10 00:45:00 +02:00
athrxx
e3dbae886d
SCUMM: Make use of graphics/sjis code for LOOM PCE sjis drawing
...
Also move font rom loader to graphics/sjis and make the necessary changes there.
2011-07-09 20:07:58 +02:00
Matthew Hoops
c270d5be12
GRAPHICS: Note that SCUMM now uses the YUV to RGB code
2011-07-02 21:11:03 -04:00
Johannes Schickel
a79f529f4c
GRAPHICS: Fix possible memory leak in BdfFont code.
2011-07-01 21:55:21 +02:00
Johannes Schickel
fa5f8dc703
GRAPHICS: Rename NewFont to BdfFont.
2011-07-01 21:53:01 +02:00
Johannes Schickel
9e3366d66e
GRAPHICS: Format NewFont code with astyle.
2011-07-01 21:20:01 +02:00
Johannes Schickel
8201df7bb6
GRAPHICS: Move NewFont code to a separate file.
2011-07-01 21:10:25 +02:00
Johannes Schickel
16ba176b4f
GRAPHICS: Fix SJIS PCE font loading.
2011-07-01 06:13:11 +02:00
Johannes Schickel
77bfaa1bb4
GRAPHICS: More default parameter remove in SJIS code.
2011-07-01 05:51:10 +02:00
Johannes Schickel
933ee5b156
GRAPHICS: Remove default values from FontSJIS::drawChar.
...
drawChar is overloaded in FontSJIS. One takes a "Surface &" as first
parameter another one "void *", they furthermore have the exact same
number of required parameters. The one "void *" just had a few extra
parameters with default values. This resulted in a bug in SCUMM, where
"VirtScreen *" (a subclass of Surface) was passed instead of "VirtScreen &"
and thus the method taking "void *" was incorrectly used.
To make it easier to spot such bugs in the future I just removed the default
values and thus disallow such calls.
2011-07-01 05:42:54 +02:00
Johannes Schickel
685e32dbd7
GRAPHICS: Offer support for PCE font data of SJIS.FNT.
2011-07-01 05:42:54 +02:00
Johannes Schickel
c047f871d6
GRAPHICS: Cleanup SJIS font code a bit.
2011-07-01 05:42:54 +02:00
Ori Avtalion
aa0f307e06
ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
...
Silences the clang warning:
static data member specialization of '_singleton' must
originally be declared in namespace 'Common'; accepted as a C++0x
extension [-Wc++0x-extensions]
Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.
Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Eugene Sandulenko
d2962531cb
GRAPHICS: Generalized arbitrary bit depth images processing in PNG decoder.
...
This fixes 1bpp image rengering.
2011-06-26 21:19:27 +03:00
Littleboy
b694a78f62
ANALYSIS: Add static casts to is* functions
...
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
Julien
8a5bda72cc
BACKENDS/GRAPHICS: Silence non zero-terminated terminated buffers warnings by initializing the buffers to 0
2011-06-23 15:11:37 +08:00
Julien
7a882600c6
GRAPHICS: Allocate Common::PEResources on the heap in WinFont::loadFromPE()
2011-06-23 15:11:36 +08:00
Julien
c52cc84912
AUDIO/BACKENDS/GRAPHICS: Add error checks after allocating memory with malloc
2011-06-23 15:11:36 +08:00
Filippos Karapetis
784180ef68
GRAPHICS: Cleanup and simplification of some PNG decoder code
2011-06-20 21:32:19 +03:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
eriktorbjorn
abf26b0614
GRAPHICS: Fix Valgrind warning
...
The stream class uses free() to automatically dispose of the buffer
so it must be allocated with malloc(), not "new".
2011-06-17 05:56:23 +02:00
Eugene Sandulenko
7d76962721
GRAPHICS: Fix decoding of 4bpp PNGs
...
Fixes checkbox in options menu in Sword25.
2011-06-16 23:35:02 +03:00
CeRiAl
d809756c8d
SCALERS: Fix Normal1xAspect scaler bug reported in bug #3313709
2011-06-14 22:43:28 +02:00