Commit Graph

1257 Commits

Author SHA1 Message Date
Bertrand Augereau
10a947a0be GRAPHICS: Scope reduction of the sometimes unused alpha component in TGADecoder::readHeader 2012-08-30 18:32:27 +02:00
Bertrand Augereau
3b4d713ba1 GRAPHICS: Undefined behaviour/warnings removal in the TGA decoder 2012-08-30 18:13:00 +02:00
Johannes Schickel
f87154def8 GRAPHICS: Slight formatting change for consistency. 2012-08-29 15:59:15 +02:00
Johannes Schickel
f189d8a541 GRAPHICS: Remove extra semicolon. 2012-08-29 15:58:55 +02:00
Johannes Schickel
933726a7e8 Merge pull request #263 from somaen/tgaloader
GRAPHICS: Add in a TGA-decoder
2012-08-29 06:58:22 -07:00
Einar Johan Trøan Sømåen
47a7df2d0f GRAPHICS: Add in a TGA-decoder 2012-08-29 14:05:54 +02:00
Johannes Schickel
eeb3959259 GRAPHICS: Add an in-place Surface PixelFormat conversion. 2012-08-28 02:27:48 +02:00
Johannes Schickel
e8cf0adf95 GRAPHICS: Slight cleanup in crossBlit code. 2012-08-28 02:27:48 +02:00
Johannes Schickel
a92a509ac8 GRAPHICS: Allow in-place conversion with any color formats in crossBlit. 2012-08-28 02:27:48 +02:00
Johannes Schickel
0d78d46a0e GRAPHICS: Remove crossBlit's dstBpp >= srcBpp limitation. 2012-08-28 02:27:48 +02:00
Johannes Schickel
3a55adbf5e GRAPHICS: Fix a bug in crossBlit with 3Bpp source.
Formerly it added 2 to the source pixel pointer instead of 3.
2012-08-28 02:27:48 +02:00
Johannes Schickel
a0f46e9396 GRAPHICS: Remove 3Bpp destination support in crossBlit. 2012-08-28 02:27:47 +02:00
Johannes Schickel
ea1bcaad33 GRAPHICS: Refactor crossBlit logic into a template. 2012-08-28 02:27:47 +02:00
Johannes Schickel
05d24e892c GRAPHICS: Clean up crossBlit a bit. 2012-08-28 02:27:47 +02:00
Matthew Hoops
bb1e60e8b2 Merge remote branch 'upstream/master' into pegasus
Conflicts:
	AUTHORS
	devtools/credits.pl
	gui/credits.h
2012-08-26 16:12:25 -04:00
Johannes Schickel
5df8c99768 GPRAHICS: Slight cleanup in png.cpp.
This adds an explanation why we use FORBIDDEN_SYMBOL_ALLOW_ALL and removes
some trailing whitespaces.
2012-08-21 02:19:51 +02:00
Johannes Schickel
05eb6eecfc Merge pull request #262 from somaen/pngwithlibpng
GRAPHICS: Reimplement the PNG-decoder using libpng
2012-08-20 17:12:52 -07:00
Einar Johan Trøan Sømåen
af05b1b80e GRAPHICS: Reimplement the PNG-decoder using libpng 2012-08-20 21:14:59 +02:00
Einar Johan Trøan Sømåen
8982026661 GRAPHICS: Add support for 32bpp BMPs 2012-08-13 02:31:34 +02:00
Matthew Hoops
c839fd50b5 GRAPHICS: Clarify format of the palette in ImageDecoder 2012-08-12 17:44:23 -04: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
50a93c2e71 GRAPHICS: Small formatting fixes in iff.cpp. 2012-07-25 21:07:19 +02:00
Johannes Schickel
f1a1938253 GRAPHICS: Serialize PixelFormat for thumbnails and allow 4Bpp surfaces.
This allows any 2Bpp/4Bpp Surfaces to be written via saveThumbnail
and loadThumbnail now. It furthermore will preserve the loaded Surface
in loadThumbnail.
2012-07-14 03:07:48 +02:00
Matthew Hoops
91efe792d5 Merge remote branch 'upstream/master' into pegasus 2012-06-24 09:37:53 -04:00
Johannes Schickel
82a553a12c Merge pull request #247 from clone2727/pixelformat-argb-fix
GRAPHICS: Fix colorToARGB's alpha value when no alpha channel is present
2012-06-20 09:24:08 -07:00
Matthew Hoops
625f6cc716 Merge remote branch 'upstream/master' into pegasus 2012-06-16 01:43:32 -04:00
Matthew Hoops
984e0012d9 GRAPHICS: Fix colorToARGB's alpha value when no alpha channel is present 2012-06-15 23:11:28 -04: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
e1e1f01b87 GRAPHICS: Let CursorMan's cursor functions take "const void *" buffers. 2012-06-16 03:28:42 +02:00
Johannes Schickel
0075fa2f98 GRAPHICS: Replace OverlayColor with uint16 in scaler code.
Scalers are actually fixed at 2Bpp right now and not at the
depth of OverlayColor.
2012-06-12 04:18:59 +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
Matthew Hoops
f1f6a82cd5 Merge remote branch 'upstream/master' into pegasus 2012-05-25 00:35:38 -04:00
Matthew Hoops
b253a05454 GRAPHICS: Hide the WinCursor implementation 2012-05-14 09:56:56 -04:00
Matthew Hoops
d789df8945 GRAPHICS: Add palette start index and color count functions to ImageDecoder 2012-05-14 09:56:56 -04:00
Matthew Hoops
e80d622fa5 Merge remote branch 'upstream/master' into pegasus 2012-05-04 23:32:29 -04:00
Matthew Hoops
e5808c740a GRAPHICS: Fix 32-bit DirectBits images 2012-05-04 23:18:28 -04:00
Johannes Schickel
3b212fdb51 GRAPHICS: Remove unused function ftFloor26_6 in ttf.cpp. 2012-05-03 23:25:00 +02:00
Johannes Schickel
b96143c180 Merge pull request #213 from fuzzie/leak-fixes
The pull request in question is "Memory leak fixes".
2012-05-03 13:45:40 -07:00
D G Turner
4d6f2875de GRAPHICS: Fix BMP getPalette function definition.
The BMP decoder getPalette function definition is now identical to
the other image format decoders subclassed from ImageDecoder.
This also fixes a overloaded virtual warning reported by salty-horse.
2012-04-22 16:41:30 +01:00
Matthew Hoops
c5363006ed GRAPHICS: Only accept JPEG CompressedQuickTime PICT opcodes 2012-04-19 11:49:06 -04:00
Matthew Hoops
9971e74c4c Merge remote branch 'upstream/master' into pegasus
Conflicts:
	base/plugins.cpp
	configure
2012-04-19 08:16:24 -04:00
Matthew Hoops
b2de2cf855 GRAPHICS: Improve the YUV410 conversion code speed some more 2012-04-16 21:34:13 -04:00
Matthew Hoops
473a09786d GRAPHICS: Make YUV410 conversion code use bilinear interpolation
SVQ1 no longer looks blocky and now looks a lot closer to what QuickTime outputs
2012-04-14 17:06:31 -04:00
Matthew Hoops
db52618833 GRAPHICS: Add comments on which engines use the decoders 2012-04-08 08:58:42 -04:00
D G Turner
e1f9598392 GRAPHICS: Add YUV410 to RGB Conversion Functions, required for SVQ1.
Thanks to clone2727 for these.
2012-04-08 03:28:58 +01:00
Joel Teichroeb
ab16233318 GRAPHICS: Fix casting away const 2012-04-03 16:54:05 -07:00
Alyssa Milburn
b470c9af28 BASE: Free TTFLibrary singleton on shutdown.
This uses a helper function because TTFLibrary is internal.
2012-03-28 19:17:53 +02:00
Alyssa Milburn
6d3927cd7a GRAPHICS: Take ownership of fonts passed to FontManager. 2012-03-28 19:17:13 +02:00
Alyssa Milburn
fdee01bf04 GRAPHICS: Don't try to delete static BDF data. 2012-03-28 19:16:52 +02:00
Matthew Hoops
71756bdf4e Merge remote branch 'upstream/master' into pegasus 2012-03-20 14:49:16 -04:00
Matthew Hoops
e79f0bf717 GRAPHICS: Fix regression caused by a bad rebase 2012-03-19 23:29:58 -04:00
Matthew Hoops
fce0e8c45b GRAPHICS: Fix PICT 16bpp 2012-03-19 21:54:37 -04:00
Matthew Hoops
a7740fb6de GRAPHICS: Add support for converting surfaces from 24bpp 2012-03-20 01:06:48 +01:00
Matthew Hoops
a658fc660e GRAPHICS: Move PNG to the ImageDecoder interface 2012-03-20 01:06:48 +01:00
Matthew Hoops
dd9790c1c8 GRAPHICS: Make PNG signature more readable 2012-03-20 01:06:48 +01:00
Matthew Hoops
b6d2a11432 GRAPHICS: Make the JPEG code use the new YUV to RGB converter 2012-03-20 01:06:48 +01:00
Matthew Hoops
765a870445 GRAPHICS: Convert JPEG to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Matthew Hoops
4516b5ea24 GRAPHICS: Convert PictDecoder to the ImageDecoder API 2012-03-20 01:06:48 +01: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
Matthew Hoops
a004897252 GRAPHICS: Add a convertTo() function to Surface 2012-03-20 01:06:47 +01:00
Alyssa Milburn
92327c7991 GRAPHICS: Render TTF glyphs at the right locations.
Or at least using the fields used by the FreeType examples.
2012-03-19 23:00:14 +01:00
Alyssa Milburn
9a13b34549 GRAPHICS: Fix TTF glyph drawing at negative Y positions. 2012-03-19 22:57:48 +01:00
Christoph Mallon
e618e6794d JANITORIAL: Remove unnecessary empty default constructors/destructors. 2012-03-13 15:42:30 +01:00
Max Horn
367131ef0e COMMON: Move Language and Platform functionality into separate files 2012-02-26 15:21:36 +01:00
Johannes Schickel
442bcb7d3e ALL: Fix some signed/unsigned comparison warnings. 2012-02-22 20:20:55 +01:00
Willem Jan Palenstijn
9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Willem Jan Palenstijn
d0c655f1fa GUI: Fix mingw-w64 build errors 2012-02-20 22:38:35 +01:00
Willem Jan Palenstijn
66d3def0e5 GUI: Implement AAed tabs
The stroke effect isn't properly implemented yet since it isn't used
in the modern theme.

There are slight bleeding colours around the corners of the
tab_background when its corners overlap with the corners of the
underlying dialog. These are hard to avoid because the underlying dialog
destroys the background that we should be blending these corners with.
2012-02-20 22:17:33 +01:00
Willem Jan Palenstijn
19cb2dc7e7 GUI: Add AA dialog corners on alpha overlays 2012-02-20 22:17:33 +01:00
Willem Jan Palenstijn
c6ac4cc7ea GUI: Minor cleanup 2012-02-20 22:17:33 +01:00
Willem Jan Palenstijn
905f9591ab GUI: Speed up alpha blending with black for classic dialog backgrounds 2012-02-20 22:17:33 +01:00
Willem Jan Palenstijn
264ba4a9ec GUI: Keep dst alpha unchanged when blending colours 2012-02-20 22:17:33 +01:00
Willem Jan Palenstijn
2957321903 GUI: Rewrite AA rounded square renderer
This fixes bleeding of colours between different regions.
It also turns 'bevel' into an option that turns the stroke into a bevel,
and implements antialiased gradient-fills.
2012-02-20 22:17:28 +01:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06: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
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
Matthew Hoops
c2af197edb GRAPHICS: Add a Surface wrapper for drawThickLine 2011-10-27 19:20:28 -04:00
Matthew Hoops
627684ca73 GRAPHICS: Make drawThickLine take a thickness in both x and y directions 2011-10-27 19:20:02 -04: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
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
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