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
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
Eugene Sandulenko
b4c44a018b
Code formatting
...
svn-id: r41420
2009-06-10 08:41:33 +00:00
Jody Northup
0a793f08a4
SDL backend now dynamically generates 8 or 16-bit color surface depending on engine request (using ad-hoc format).
...
svn-id: r41416
2009-06-10 05:35:18 +00:00
Jody Northup
0323638ce9
Streamlined the cursor blitting changes introduced in revision 41412
...
svn-id: r41213
2009-06-06 08:41:03 +00:00
Jody Northup
4087a3e6e8
Corrected 16-bit cursor blit errors on GFX mode change.
...
svn-id: r41212
2009-06-06 08:02:45 +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
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
Jody Northup
8447a3650e
Applying the temporary 16-bit SDL hack.
...
svn-id: r41152
2009-06-03 23:36:23 +00:00
Bertrand Augereau
bb2540a4d1
Renamed aspectRatio to aspectRatioCorrection in the SDL backend to match the accessor functions
...
(don't worry, o reader, for this is the only modification going to the SVN :) )
svn-id: r40226
2009-05-01 09:09:07 +00:00
Max Horn
e59b4587b7
COMMON: Added a new IS_ALIGNED macro (for now using size_t, we can change it if this turns out to be not portable enough. Also added a doxygen comment to the ARRAYSIZE macro
...
svn-id: r39542
2009-03-19 21:43:27 +00:00
Torbjörn Andersson
ce4d9bc066
Changing the visibility of the mouse means it has to be redrawn. At least, this
...
fixes a regression in Broken Sword 1 when using one inventory object on another
(if the cursor is partly beneath the inventory bar) for me.
svn-id: r38926
2009-02-27 05:58:08 +00:00
Johannes Schickel
d262d7773a
Fix regression introduced with r38890, where the mouse cursor was redrawn every updateScreen call.
...
svn-id: r38899
2009-02-26 11:32:02 +00:00
Johannes Schickel
28d1fdcf24
- Fix cursor drawing bug on (cursor) palette change
...
- Fix cursor drawing when it was hidden before and no dirty rects are present
- Diese und die folgenden Zeilen werden ignoriert --
M sdl/graphics.cpp
svn-id: r38890
2009-02-26 02:04:30 +00:00
Max Horn
c102e30e73
SDL: Tweak the way the mouse is drawn/erased, so that it is not erase and drawn again if nothing changed
...
svn-id: r38861
2009-02-24 21:43:07 +00:00
Max Horn
c69ebfd798
Moved default implementations for various OSystem methods into a new class BaseBackend
...
svn-id: r36135
2009-01-30 03:35:47 +00:00
Max Horn
abc06ca18e
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
...
svn-id: r35993
2009-01-22 04:35:10 +00:00
Johannes Schickel
a33a5d0f14
Fixed the way how screen changes are tracked. This should fix a crash when doing an RTL from COMI when a 3x scaler is enabled.
...
svn-id: r35685
2009-01-02 21:52:32 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Torbjörn Andersson
08ff8d281f
Allow changing the scaler using hotkeys again. I hope this is the correct way
...
of fixing it. (I've added a final case to endGFXTransaction for when the screen
just needs to be updated, without any changes in mode or size.)
svn-id: r35443
2008-12-19 17:54:45 +00:00
Johannes Schickel
5a0556f09c
Committed my patch #2123680 "SDL: Backend transaction / rollback support".
...
svn-id: r35062
2008-11-14 22:08:10 +00:00
Max Horn
edf9f24926
Got rid of OSystem::colorToRGB and RGBToColor; added implementations for OSystem::getOverlayFormat to several ports (pending testing by the porters)
...
svn-id: r34912
2008-11-06 15:02:50 +00:00
Johannes Schickel
985c02ee7d
Committed my patch #2216641 "GRAPHICS: PixelFormat introduction".
...
svn-id: r34875
2008-11-03 13:44:59 +00:00
Johannes Schickel
f8574c52f8
Fixed full screen toggling via alt+enter.
...
svn-id: r34627
2008-09-22 17:33:30 +00:00
Max Horn
383014f330
Fix for bug #2120602 : 5ALL: Starting the launcher with -f triggers assertion
...
svn-id: r34617
2008-09-20 16:10:29 +00:00
Max Horn
b0c6a12c81
Modified Patch #1925352 : Memory leak fixes
...
svn-id: r31244
2008-03-26 19:29:33 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Torbjörn Andersson
32e2f9e8f3
Fixed warning when DISABLE_SCALERS is defined.
...
svn-id: r30074
2007-12-29 14:11:12 +00:00
Max Horn
9b0dc6f757
Do not use SDL_WM_ToggleFullScreen, it's buggy on too many systems. Should fix bug #1705410 .
...
svn-id: r30006
2007-12-26 23:00:18 +00:00
Max Horn
9402981517
SDL backend cleanup (minor)
...
svn-id: r28520
2007-08-11 08:44:43 +00:00
Max Horn
b51f2f3212
Implemented the OSystem framebuffer API, as discussed on scummvm-devel. All changes are just fine, and won't cause any compile problems or regressions, despite the fact that I can't test most of the non-SDL backend changes, at an improbability level of two to the power of two hundred and seventy-six thousand to one against - possibly much higher. Anything you still can't cope with is therefore your own problem. Please relax.
...
svn-id: r27548
2007-06-19 22:39:59 +00:00
Max Horn
f80799cd5b
Fix for bug #1690813 : BASS: Crash when changing scalers during intro
...
svn-id: r27435
2007-06-15 21:21:42 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
ed54ea9155
Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
...
svn-id: r26180
2007-03-17 19:02:05 +00:00
Eugene Sandulenko
75b062b89f
Implement FR #1595534 : "Touche: Aspect Ratio Correction"
...
svn-id: r24706
2006-11-13 13:53:14 +00:00
Torbjörn Andersson
15f08bf268
Warn if copyRectToScreen() is called before _screen is created, since it's
...
almost certainly a programming error. (Used to be silently ignored.)
Warn if setPalette() is called before _screen is created, but allow it (for
now) since we don't actually set the palette until later. It could still be a
programming error, though.
Don't crash if updateScreen() is called with a "dirty" palette before _screen
is created.
svn-id: r23573
2006-07-23 06:50:49 +00:00
Torbjörn Andersson
6358547a43
More whitespace changes.
...
svn-id: r23496
2006-07-14 13:33:58 +00:00
Max Horn
492c65009c
Started to move 'monolithic' parts of our ports to the new 'background/platform' directory (see also the 'Modular_Backends' page in our Wiki)
...
svn-id: r23293
2006-06-24 12:33:52 +00:00