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
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
Willem Jan Palenstijn
a1f12c25ca
ARM: Fix normal2x scaler for width % 4 != 0
...
The first jump to 'thin:' didn't leave r14 (remaining width)
in the right state.
2011-06-10 21:31:03 +02:00
CeRiAl
ef3484646a
SCALERS: Fix for compiling for ARM without using ASM scalers
2011-06-10 21:30:45 +02:00
Alyssa Milburn
1529287082
GRAPHICS: Move comment to the right function.
2011-06-08 19:30:22 +02:00
eriktorbjorn
a826c4422f
JANITORIAL: Unbreak building with --disable-translation
...
I don't know if there is more code that can be removed when
disabling translations, but this is the obvious obstacle.
2011-06-07 06:21:04 +02:00
Thierry Crozat
197ef8f178
GRAPHICS: Add kLocalizedFont in FontManager
...
This makes it easy to get a localized font for the current
TranslationManager charset if one has been loaded. It tries
first to find one for the BigGUI or GUI fonts and then looks
for any acceptable font.
Also only use lower case font name for the FontManager HashMap.
This is to avoid issues with the case when looking for a font by
its name. There was for example an issue for font helvB12 that is
named helvb12 in the scummmodern theme.
2011-06-06 23:20:10 +01:00
Thierry Crozat
6b13782967
GRAPHICS: Move genLocalizedFontFilename() to FontManager class
...
It was defined in ThemeEngine class , but I moved it to make it
possible to use localized font in other places.
2011-06-06 23:20:09 +01:00
Thierry Crozat
592cca5402
GRAPHICS: Get rid of kSODFont (ScummFont)
...
OSD is now using the kGUIFont instead. The main advantage is that
the kGUIFont can be used for translated text while only ASCII
characters were present in ScummFont.
2011-06-06 23:20:08 +01:00
Max Horn
ce32745d9c
BACKENDS: Replace OSystem::disableCursorPalette by setFeatureState calls
2011-06-04 11:55:56 +02:00
Max Horn
91b889e2d3
COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette
2011-06-04 11:55:56 +02:00
Matthew Hoops
ad9c46344c
GRAPHICS: flavour -> flavor
2011-05-25 10:50:47 -04:00
Matthew Hoops
eea482fa43
ALL: behaviour -> behavior
2011-05-25 10:50:46 -04:00
Matthew Hoops
1277975c66
ALL: neighbour -> neighbor
2011-05-25 10:50:46 -04:00
Matthew Hoops
efcf278bdf
GRAPHICS: Optimize the convertYUV420ToRGB function a bit more
...
A template is used to avoid a bytesPerPixel check on every pixel and less deferences are done
2011-05-24 18:22:48 -04:00
Max Horn
90d3fc9f5b
GRAPHICS: Rename some members of NewFont
2011-05-23 12:13:02 +02:00
Matthew Hoops
5fdf2796d6
GRAPHICS: Cleanup formatting
2011-05-19 18:38:09 -04:00
Matthew Hoops
1ee5ef9c6f
GRAPHICS: Allow auxiliary surface functions to be used for 32bpp surfaces
2011-05-19 18:38:09 -04:00
Matthew Hoops
410be8bb79
GRAPHICS: Update links to info on PICT+JPEG
2011-05-18 23:21:20 -04:00
Matthew Hoops
affb6a38a1
GRAPHICS: Add some docs and sanity checks to the YUV to RGB code
2011-05-18 10:05:13 -04:00
Matthew Hoops
0addffbfd3
GRAPHICS: Add a YUV to RGB table lookup for use with Theora
...
Based on the video/mpeg_player.* one, which is based on lots of other things (too many to name, go see the file)
2011-05-18 10:05:13 -04:00
md5
9bbfa2846b
COMMON: Added compilation safeguards for the png decoder
2011-05-13 20:34:25 +03:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
peres
6ddf6693ce
GRAPHICS: use the new interpolate16_5_3
2011-05-07 08:38:53 +09:00
peres
2dddcbf41d
GRAPHICS: implement the long awaited interpolate16_5_3
2011-05-07 08:38:32 +09:00
Matthew Hoops
4a3d94a60e
GRAPHICS: Add a new MacCursor class for handling CURS/crsr cursors
2011-05-05 19:26:44 -04:00
Max Horn
a48b705c54
GRAPHICS: Turn printf into warning
2011-05-02 13:40:25 +02:00
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
Ori Avtalion
cd6ee0589d
JANITORIAL: Format forward declarations to follow convention
2011-04-28 12:20:34 +03:00
md5
27e4a1dee5
PNG: Changed getPalette() to properly return a copy of the image palette
2011-04-27 13:44:19 +03:00
md5
99e3028459
PNG: Improved code readability a bit
2011-04-27 13:43:03 +03:00
Johannes Schickel
33a88e5cac
PNG: This PNG::getPalette.
...
Formerly the palette parameter was a value copy, which was assigned in
getPalette. That did not make much sense, thus I changed it to be a reference.
Since I am not quite sure whether this really shouldn't make a palette copy
I added an TODO comment about it.
2011-04-25 15:45:05 +02:00
Johannes Schickel
da734a4af0
ALL/GRAPHICS: Remove Surface::bytesPerPixel.
2011-04-17 21:27:34 +02:00
Johannes Schickel
3fd919060c
GRPAHICS: Do not access Surface::bytesPerPixel anymore.
2011-04-17 20:58:08 +02:00
Johannes Schickel
39b993fb02
GRAPHICS: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
2011-04-17 16:24:52 +02:00
Johannes Schickel
4fd3e3d6fe
GRAPHICS: Add a PixelFormat member to Surface.
2011-04-17 15:17:42 +02:00
Alyssa Milburn
cfacca1a26
GRAPHICS: Tidy up 4bpp handling a little.
2011-04-14 21:47:56 +02:00
Alyssa Milburn
c60e773981
GRAPHICS: Handle 4bpp paletted PNG files.
2011-04-14 21:08:03 +02:00
Alyssa Milburn
2ac86f8140
GRAPHICS: Replace PNG_HEADER macro with MKTAG
2011-04-14 18:37:27 +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
dhewg
d83a83ef50
JANITORIAL: Remove/comment unused vars
...
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
dhewg
2def212de7
ALL: s/PI/M_PI/
...
Tip of the day: git grep -w PI
2011-03-19 11:24:06 +01:00
md5
334e1cd675
GRAPHICS: Silenced a warning
2011-03-19 02:30:03 +02:00
Matthew Hoops
4e7b66b1bc
GRAPHICS: Cleanup WinCursorGroup functions a bit
...
ScopedPtr is now used on the streams to avoid having repetitive delete calls.
2011-03-07 16:37:12 -05:00
Matthew Hoops
b158a40844
GRAPHICS: Add doxygen comments for WinCursorGroup
2011-03-07 13:24:05 -05:00
Matthew Hoops
4dba6962f5
GRAPHICS: Fix a missing 'f'
...
Thanks, fuzzie
2011-03-07 11:40:54 -05:00
Matthew Hoops
d49f3a8a78
GRAPHICS: Improve support of Windows 8bpp cursors
2011-03-07 00:53:40 -05:00
Matthew Hoops
5b907e828b
GRAPHICS: Fix PE cursors
...
Initial work on 8bpp cursors has also been added
2011-03-06 19:53:17 -05:00
Matthew Hoops
6143fe965b
GRAPHICS: Add support for PE cursors in WinCursorGroup
...
Only 1bpp still
2011-03-05 13:36:55 -05:00
Matthew Hoops
c66233f83e
GRAPHICS: Split the NE cursor code from the NEResources class
...
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
Matthew Hoops
550cff84f8
GRAPHICS: Add support for PE FON files
...
This hopefully will work out of the box, but requires testing
2011-02-23 14:43:18 -05:00
Matthew Hoops
a2a0b13de2
COMMON: Begin to merge some NE/PE code
...
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Johannes Schickel
9afc89e67c
GRAPHICS: Let PNG::getPalette take an uint16 for the palette entry count.
...
This is in analogy to r55742 / 2f08dcb
.
I also took the freedom to clarify that the PNG loader uses a RGBA palette
format.
2011-02-20 21:43:24 +01:00
Johannes Schickel
75ee5af7c9
GRAPHICS: Remove leftover RGBA reference in PaletteManager documentation.
2011-02-20 21:38:40 +01:00
Matthew Hoops
5091f846a7
GRAPHICS: Switch PICT's palette from RGBA to RGB
2011-02-20 00:45:59 -05:00
Matthew Hoops
098581b3b5
GRAPHICS: Use the DirectBits size instead of the overall PICT dimensions
...
Fixes some Myst ME images
2011-02-20 00:43:18 -05:00
Johannes Schickel
e6c7544fe2
GRAPHICS: Fix cursor palette buffering after RGBA->RGB change.
...
Thanks to clone2727 for noticing this.
2011-02-20 05:43:04 +01:00
Johannes Schickel
292f197142
GRAPHICS: Remove note about alpha channel removal in PaletteManager.
2011-02-19 23:45:03 +01:00
Johannes Schickel
05f0855efc
GRAPHICS: Update CursorManager documentation for RGBA->RGB change.
2011-02-14 17:08:32 +01:00
Johannes Schickel
f53f1af062
GRAPHICS: Adapt thumbnail code to grabPalette RGBA->RGB change.
2011-02-14 17:08:32 +01:00
Johannes Schickel
18ff02a2fa
GRAPHICS: Update PaletteManager documentation for RGBA->RGB change.
2011-02-14 17:08:31 +01:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
Bastien Bouclet
e7a57de38b
GRAPHICS: Improved JPEG decoder performance
...
Replaced the 2D IDCT by two 1D IDCT (rows, then columns).
JPEG images now decode about twice as fast as they used to.
svn-id: r55794
2011-02-06 13:43:40 +00:00
Filippos Karapetis
2f08dcb667
GRAPHICS: Fixed a bug with indexed PNGs in the PNG decoder (a byte can't hold 256 entries)
...
svn-id: r55742
2011-02-02 21:18:10 +00:00
Filippos Karapetis
e6f2f7e615
GRAPHICS: Updated the copyright information regarding LodePNG. Removed the obsolete reference to ysflight, as no code is actually used from or based on that project
...
svn-id: r55726
2011-02-02 16:40:39 +00:00
Filippos Karapetis
a86cb87b98
GRAPHICS: Implemented a PNG decoder, and set it as default for the sword25 engine
...
libpng is still needed for PNG encoding (for thumbnails in saved games of sword25), but
since we'll probably drop support for the original saved games anyway, the PNG encoding
code will ultimately be removed
svn-id: r55723
2011-02-02 15:43:45 +00:00
Filippos Karapetis
c0ce8a839e
Silenced some MSVC warnings
...
svn-id: r55699
2011-01-31 23:19:00 +00:00
Max Horn
c44f9bdb1d
GRAPHICS: Make JPEG::getComponent error out if component was not found
...
svn-id: r55587
2011-01-28 09:50:05 +00:00
Max Horn
96d91ec182
GRAPHICS: Turn sqrt(2) and cosine values into constants ;)
...
svn-id: r55586
2011-01-28 09:46:39 +00:00
Max Horn
baf6af4fa6
GRAPHICS: Rename JPEG::_str to _stream
...
We use _str to denote strings almost everywhere, so this
was a bit confusing. Another alternative would be to use _s.
svn-id: r55585
2011-01-28 09:37:11 +00:00
Torbjörn Andersson
7bf8dda27f
JANITORIAL: Remove unnecessary backslash
...
svn-id: r55483
2011-01-23 21:59:26 +00:00
Eugene Sandulenko
806ccf5d25
GRAPHICS: Move graphics/video/ to video/. Step 1/2
...
svn-id: r55473
2011-01-23 17:14:43 +00:00
Sven Hesse
c039b06c3c
VIDEO: Fix createSurface() for the case that there's no video
...
Fixes clicking on the Piano in the Apartment in Urban Runner.
svn-id: r55456
2011-01-23 03:46:38 +00:00
Matthew Hoops
57521f7574
VIDEO: Update documentation on which decoder is used by what engine
...
svn-id: r55455
2011-01-23 01:27:40 +00:00
Matthew Hoops
257a6b2e6d
VIDEO: Fix QuickTime audio buffering on the last frame
...
svn-id: r55450
2011-01-22 23:31:21 +00:00
Sven Hesse
95e557c564
VIDEO: Seek a video seek glitch
...
Observable when ESCing a 16bit or 24bit video, for example
the fuses in Urban Runner's Labyrinth screen.
svn-id: r55410
2011-01-22 08:00:57 +00:00
Sven Hesse
e1e299d0b8
VIDEO: Correctly correct the _blitMode 1/2 coordinate differences
...
This fixes the figure lights position in the Secret Room, while
still leaving the flow rate gauge position in the Labyrinth correct
svn-id: r55409
2011-01-22 07:20:16 +00:00
Sven Hesse
bb6c230587
GOB: Implement looping live videos
...
Needed for the buttons in the Playtoons series
svn-id: r55359
2011-01-20 18:17:39 +00:00
Sven Hesse
33ed3fa8a0
VIDEO: Don't delete, just finish the audiostream on video end
...
svn-id: r55356
2011-01-20 17:07:17 +00:00
Sven Hesse
75c840b527
VIDEO: Add hasVideo()
...
svn-id: r55348
2011-01-20 12:28:22 +00:00
Sven Hesse
8c80f80697
VIDEO: The getTimeToNextFrame override is useless now
...
svn-id: r55341
2011-01-20 03:27:09 +00:00
Sven Hesse
d77899e158
GOB: Make Urban Runner's "3D view" work again
...
svn-id: r55340
2011-01-20 03:22:43 +00:00
Sven Hesse
679a8d6ad6
VIDEO: Recreate the audiostream if necessary
...
svn-id: r55324
2011-01-19 09:03:09 +00:00
Sven Hesse
2e30eca6d0
VIDEO: Don't segfault when no audiostream is present
...
svn-id: r55322
2011-01-19 09:02:07 +00:00
Sven Hesse
22c3e7b1de
VIDEO: Don't assert() when a needed codec isn't compiled in
...
svn-id: r55317
2011-01-19 00:16:13 +00:00
Matthew Hoops
503fdb6147
GRAPHICS: Add a getSurface() function to JPEG to automatically convert to RGB
...
svn-id: r55301
2011-01-18 16:18:10 +00:00
Sven Hesse
94f5bec0f6
GOB: Fix Woodruff video offsets
...
svn-id: r55288
2011-01-18 07:03:12 +00:00
Sven Hesse
d509941eca
VIDEO: Clip render rect to the surface's dimension
...
...And not to the video's. Oops :P
svn-id: r55285
2011-01-18 05:09:43 +00:00
Sven Hesse
da65a3cbf3
GOB: Fix the flow rate gauge in Urban Runner
...
svn-id: r55275
2011-01-17 09:48:42 +00:00
Sven Hesse
84cda62d1f
VIDEO: Implement internal-codec 24bpp VMDs
...
svn-id: r55265
2011-01-16 16:41:27 +00:00
Sven Hesse
32b94cc236
VIDEO: Implement internal-codec 16bit VMDs
...
svn-id: r55263
2011-01-16 16:29:43 +00:00
Sven Hesse
faa66fc01a
VIDEO: Add color mode methods
...
To query the video's color mode and notifying the decoder that
the system's color mode changed.
svn-id: r55259
2011-01-16 16:27:52 +00:00
Sven Hesse
afd101c526
VIDEO: Add range checks to deLZ77()
...
svn-id: r55258
2011-01-16 16:27:22 +00:00
Sven Hesse
23c1184d80
VIDEO: Simplying the video buffers
...
svn-id: r55257
2011-01-16 16:26:52 +00:00