Commit Graph

33 Commits

Author SHA1 Message Date
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
3fd919060c GRPAHICS: Do not access Surface::bytesPerPixel anymore. 2011-04-17 20:58:08 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Willem Jan Palenstijn
6a28d05676 BUILD: Include scummsys.h to force rebuild after reconfigure (thanks LordHoto)
svn-id: r55156
2011-01-08 03:27:13 +00:00
Max Horn
a0df86955f ALL: Push down deps on stream.h from .h to .cpp files
svn-id: r54358
2010-11-19 01:37:04 +00:00
Florian Kagerer
e4da5e3af4 GRAPHICS/SJIS: cleanup
svn-id: r54099
2010-11-05 20:36:13 +00:00
Florian Kagerer
4457d10f84 GRAPHICS/SJIS: fix out of bounds shadow mode text drawing
svn-id: r54080
2010-11-05 01:11:05 +00:00
Florian Kagerer
206971d16b SCUMM/FM-TOWNS JAPANESE: fix out of bounds text drawing
(could cause invalid memory access in MI1)

svn-id: r54079
2010-11-05 00:36:23 +00:00
Florian Kagerer
1d87f434a2 SCUMM/FM-TOWNS JAPANESE: implement flipped text
(used in the MI1 circus scene after Guybrush gets shot out of the cannon)

svn-id: r53616
2010-10-19 16:58:27 +00:00
Florian Kagerer
c841c3fb7c SCUMM/FM-TOWNS: more improvements to japanese font drawing
- made use of LordHotos graphics/sjis code to reduce code duplication
- japanese mode for version 3 and 5 works fine now with few exceptions (some line spacing glitches in MI1 intro etc.)

svn-id: r53554
2010-10-17 13:08:00 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
746f391b8a Cleanup.
svn-id: r45993
2009-11-19 22:22:08 +00:00
Johannes Schickel
67c6e92efb Add support for 8x16 chars in the FM-Towns font ROM code.
svn-id: r44910
2009-10-11 12:00:56 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Johannes Schickel
03a26923c9 Implemented support for drawing 8x16 chars from our custom SJIS font.
svn-id: r44486
2009-09-30 14:53:07 +00:00
Johannes Schickel
1b94303b78 Update SJIS code to read SJIS.FNT version 2 data (no support for drawing ASCII and half-width katakana glyphs yet).
svn-id: r44483
2009-09-30 13:07:12 +00:00
Johannes Schickel
2597814af3 Add another range check in our SJIS font code to avoid out of bounds access.
svn-id: r43532
2009-08-19 08:37:20 +00:00
Johannes Schickel
d1fed5cee1 Instead of only printing a warning, when no SJIS char data is present, just return to the caller.
svn-id: r42823
2009-07-26 14:40:03 +00:00
Johannes Schickel
4b27c43b0a Reflect code to test the magic bytes in the sjis.fnt header.
svn-id: r42821
2009-07-26 14:19:02 +00:00
Johannes Schickel
ec67b583b0 Add way to overwrite default SJIS font.
svn-id: r42819
2009-07-26 14:18:34 +00:00
Johannes Schickel
15662b3cfb Print warning, when client code does try to draw an unsupported SJIS char.
svn-id: r42817
2009-07-26 14:18:06 +00:00
Johannes Schickel
ebc74a7c9b Add a factory method, which tries to open different SJIS fonts/ROMs and returns a font for the first present data.
svn-id: r42816
2009-07-26 14:17:54 +00:00
Johannes Schickel
cb960ad976 Change the way the font data for SJIS fonts is load.
svn-id: r42815
2009-07-26 14:17:40 +00:00
Johannes Schickel
0a612f40eb Add support for our custom SJIS font.
svn-id: r42813
2009-07-26 14:17:06 +00:00
Johannes Schickel
712e0c80ea Create base class FontSJIS16x16 for our own SJIS font.
svn-id: r42812
2009-07-26 14:16:51 +00:00
Filippos Karapetis
a0a675e42d Reverted commit #42257, as the original issue was with the compilation process of MSVC and the ENABLE_* checks work correctly
svn-id: r42289
2009-07-09 15:15:49 +00:00
Filippos Karapetis
570d157ff3 The ENABLE_* flags are only checked for *.cpp files in MSVC, so move the ENABLE_* checks to sjis.cpp to fix compilation under MSVC
svn-id: r42257
2009-07-08 07:13:56 +00:00
Johannes Schickel
832540f64f Simply compile guard of SJIS code and fix comment.
svn-id: r42234
2009-07-07 19:18:32 +00:00
Johannes Schickel
2a117d9a90 Add guards to only include SJIS font code, when KYRA or SCI is enabled.
svn-id: r42233
2009-07-07 19:00:51 +00:00
Johannes Schickel
8c65d4d4a9 - Rename FontSJIS::enableShadow to enableOutline.
- Initialize outline to false by default in FontTowns.

svn-id: r42231
2009-07-07 18:17:30 +00:00
Johannes Schickel
62eebc3e17 - Added support for outlined FM-Towns ROM drawing
- Adapted KYRA to use that

svn-id: r42230
2009-07-07 18:10:35 +00:00
Johannes Schickel
8623081666 Add generic functionallity to draw FM-Towns ROM. (To be used by KYRA and SCI)
svn-id: r42221
2009-07-07 14:22:23 +00:00