Jody Northup
9e1916bcad
renamed kTransactionPixelFormatNotSupported to kTransactionFormatNotSupported, retyped all Graphics::PixelFormat * parameters to const Graphics::PixelFormat *, (hopefully) repaired all memory leaks on screen and cursor format changes, provided OSystem::getScreenFormat and OSystem::getSupportedFormats methods for when ENABLE_RGB_COLOR is not set, completely forgot the "commit early, commit often" mantra.
...
svn-id: r41972
2009-06-30 07:30:57 +00:00
Johannes Schickel
b37beb4493
Add some more explanation to Graphics::CursorManager::showMouse and OSystem::showMouse.
...
svn-id: r41968
2009-06-29 23:23:29 +00:00
Max Horn
a882a6f467
GUI: Replaced ThemeParser::_drawFunction hashmap by a static function getDrawingFunctionCallback which maps strings to draw funcs
...
svn-id: r41931
2009-06-28 19:57:27 +00:00
Jody Northup
27e50db5d7
Converted OSystem::SetMouseCursor to take pointer to PixelFormat, instead of full PixelFormat. Removed OSystem::setCursorFormat (since I forgot to do so several commits ago)
...
svn-id: r41901
2009-06-26 10:37:00 +00:00
Jody Northup
2859c91304
Changed cursor manager functions to take *Graphics::PixelFormat with default parameter of NULL (and initialize NULL pointers with CLUT8), rather than taking a Graphics::PixelFormat with default parameter of Graphics::PixelFormat::createFormatCLUT8()
...
svn-id: r41900
2009-06-26 08:50:11 +00:00
Jody Northup
865129a563
made the cursor's pixel format a member of the cursor object, merged ____CursorFormat functions into equivalent ____Cursor functions.
...
svn-id: r41825
2009-06-24 06:44:30 +00:00
Jody Northup
c0c0aed488
Factory constructors for ARGB BGR ABGR and BGRA pixel formats.
...
svn-id: r41697
2009-06-20 05:31:23 +00:00
Jody Northup
f7dd1c15ed
renamed ENABLE_16BIT define to more accurate ENABLE_RGB_COLOR
...
svn-id: r41696
2009-06-20 05:23:09 +00:00
Torbjörn Andersson
8b6ed92376
Fixed compilation.
...
svn-id: r41695
2009-06-20 05:08:07 +00:00
Jody Northup
704386d3b0
Removed replaced Graphics::ColorMode enum type with factory methods for Graphics::PixelFormat.
...
svn-id: r41662
2009-06-19 09:28:55 +00:00
Pawel Kolodziejski
abaa548181
synced with scummvm
2009-06-18 11:52:26 +00:00
Torbjörn Andersson
78eed8b7c4
Fixed warning. (GCC doesn't like commas at the end of an enum list.)
...
svn-id: r41586
2009-06-16 17:52:32 +00:00
Jody Northup
d3283f86fc
Simplified colormode enum
...
svn-id: r41578
2009-06-16 05:34:12 +00:00
Jody Northup
fb96e826f2
Simplified cursor related 16-bit code.
...
svn-id: r41577
2009-06-16 05:33:11 +00:00
Eugene Sandulenko
0ca17a7f8c
Fix compilation when 16BIT code is disabled.
...
svn-id: r41543
2009-06-15 11:46:28 +00:00
Eugene Sandulenko
5d61784dae
Remove uglyness with PixelFormat initialization.
...
svn-id: r41541
2009-06-15 11:35:51 +00:00
Jody Northup
c97bfd16f9
made Graphics::PixelFormat(ColorMode) constructor explicit, removed Graphics::PixelFormat(int bitFormat) constructor that was never really implemented anyway
...
svn-id: r41540
2009-06-15 10:10:22 +00:00
Jody Northup
8d306ebccf
Added kUnsupportedColorMode error code brought Scumm engine and SDL backend into compliance with API outlined in http://scummvmupthorn09.wordpress.com/2009/06/14/how-this-is-going-to-work/
...
Provided convenient Graphics::PixelFormat constructors for ColorMode enums, and bitformat integers.
Removed last vestiges (I think) of initial cursor hack.
svn-id: r41539
2009-06-15 09:45:19 +00:00
Jody Northup
350dc4290f
Fixed cursor code to keep track of cursor formats so that ThemeEngine and/or GuiManager cursors will render properly over the game (on spacebar hit, for instance)
...
svn-id: r41491
2009-06-13 10:24:52 +00:00
Nicola Mettifogo
36828287ad
* Moved the updated IFF code from Parallaction to common/
...
* Updated Parallaction and SAGA to use the new decoder infrastructure.
svn-id: r41465
2009-06-12 08:51:05 +00:00
Jody Northup
2ee51a8fa1
Unfinished proof of concept regarding my compromise with LordHoto in IRC.
...
svn-id: r41464
2009-06-12 08:49:45 +00:00
Jody Northup
6adbd0c41e
Renamed Graphics::ColorFormat to Graphics::ColorMode, streamlined enum by removing order section and temporarily removing kFormatARGB1555
...
Converted cursor code to make use of _screenFormat, instead of a parameter passed directly to it by the engine.
Adjusted scumm engine to account for these changes.
This should probably have been two separate commits, but the changes concern the same files...
svn-id: r41443
2009-06-11 05:56:00 +00:00
Johannes Schickel
c0ba9d1158
Add a convenience wrapper to CursorMan for checking whether cursor palettes are supported.
...
svn-id: r41432
2009-06-10 15:20:52 +00:00
Johannes Schickel
3a32d7711b
Fix a bug in disableCursorPalette, where it never allowed the palette to be enabled properly again.
...
svn-id: r41428
2009-06-10 15:01:20 +00:00
Jody Northup
c426dd99a4
Laying the foundation for preliminary bitdepth negotiation. (No functionality changes yet)
...
svn-id: r41396
2009-06-09 07:55:43 +00:00
Pawel Kolodziejski
1401c7f3ef
correct include path
2009-06-08 10:12:29 +00:00
Filippos Karapetis
ec38b77b00
Changed the bitstream buffer used to initialize the big Huffman trees to be a normal byte array, instead of a Common::Array
...
svn-id: r41356
2009-06-07 22:34:03 +00:00
Filippos Karapetis
6dd009c153
Formatting
...
svn-id: r41354
2009-06-07 22:17:44 +00:00
Filippos Karapetis
0c5dd48395
Applied madmoose's patch from bug report #2794216 - "Loading large Smacker movies is slow"
...
svn-id: r41353
2009-06-07 22:15:28 +00:00
Eugene Sandulenko
b0f7f2e8d4
Implement widget property "textalign". Added it to all theme layouts
...
svn-id: r41265
2009-06-06 17:51:41 +00:00
Pawel Kolodziejski
bc1cb4ce27
formating
2009-06-06 16:23:31 +00:00
Jody Northup
56e5920bba
Corrected cursor display errors introduced by revision 41204, reimplemented 16-bit cursor support in a less hacky, but still temporary way.
...
svn-id: r41209
2009-06-06 01:16:04 +00:00
Jody Northup
d65bbe1d7a
Fixes ScummEngine_v70he::setDefaultCursor to work in 16-bit, using a temporary hack.
...
svn-id: r41204
2009-06-05 23:59:40 +00:00
Pawel Kolodziejski
a9386d48dc
added some pixel format common code
2009-06-05 12:00:41 +00:00
Jody Northup
9789ba7f28
Corrected backend to be able to accept a 16-bit mouseKeyColor without overflow
...
svn-id: r41194
2009-06-05 08:09:37 +00:00
Jody Northup
f8361b5c53
Converted cursor code to use 16-bit.
...
svn-id: r41191
2009-06-05 06:41:04 +00:00
Travis Howell
fa2b1add9d
Ooops, update asserts in grabScreen565() too.
...
svn-id: r41183
2009-06-05 00:28:07 +00:00
Travis Howell
3a64d35dfd
Add 16bit color support for later HE games.
...
svn-id: r41153
2009-06-04 01:05:47 +00:00
Travis Howell
fc4d1c0aff
Revert last change, better to wait for 16bit backend support.
...
svn-id: r41131
2009-06-03 00:31:50 +00:00
Travis Howell
f82df1d1c4
Update thumbnail code to capture RGB565 screen.
...
svn-id: r41130
2009-06-03 00:01:07 +00:00
Max Horn
02ac46565b
Tweak the hq2x/hq3x a little bit (interpolation code is little bit shorter, faster and easier to read... but 70+% of the time is spent on computing diffYUV etc. anyway, so I guess this a bit pointless... whatever... ;)
...
svn-id: r40964
2009-05-28 21:33:36 +00:00
Pawel Kolodziejski
d3f6ae0476
synced common code with scummvm and adopt other parts to that changes
2009-05-27 13:28:49 +00:00
Pawel Kolodziejski
49babd8e3d
update headers
2009-05-26 14:22:57 +00:00
Filippos Karapetis
5e94e688e9
Reserve some space in the Huffman tree arrays before starting to decode the Huffman trees. Hopefully, this will speed up the tree constructing phase somewhat
...
svn-id: r40900
2009-05-26 07:25:12 +00:00
Pawel Kolodziejski
49b578ec6a
put tinygl internals into namespace, left only api
2009-05-25 13:19:29 +00:00
Pawel Kolodziejski
7ad12a0856
update defines for include files
2009-05-25 12:28:16 +00:00
Pawel Kolodziejski
ba0576bc5e
put Vector3D and Matrix3/4 into Graphics namespace
2009-05-25 12:13:35 +00:00
Pawel Kolodziejski
34d97baaf3
update paths
2009-05-25 10:41:21 +00:00
Pawel Kolodziejski
51b44b065b
moved matrx3/4.cpp and vector3d.cpp into graphics directory
2009-05-25 10:32:21 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00