Martin Kiewitz
c9c9eafbbb
SDL/w32: add ability to hide console
...
feature is currently commented out - waiting till discussion has ended
svn-id: r53767
2010-10-24 18:34:08 +00:00
Johannes Schickel
b713beed18
OPENGL: Add an SdlEventSource member to OSystem_SDL instead of subclassing SdlEventSource.
...
Derived backends are allowed to overwrite that member in case they need special
handling of SDL events.
svn-id: r53675
2010-10-21 18:13:13 +00:00
Johannes Schickel
54f559dc51
OPENGL: Cleanup.
...
svn-id: r53436
2010-10-13 15:43:08 +00:00
Johannes Schickel
34302765ca
OPENGL: Get rid of one ugly cast.
...
svn-id: r53435
2010-10-13 15:42:53 +00:00
Johannes Schickel
a2b96a2516
OPENGL: Replace SdlEventManager by SdlEventSource.
...
Formerly SdlEventManager was a subclass of DefaultEventManager but did not
really have anything in common with the idea of our EventManager interface.
Now I made a new object SdlEventSource which only subclasses EventSource
and which is responsible for obtaining events from SDL (and processing them).
svn-id: r53433
2010-10-13 15:42:16 +00:00
Johannes Schickel
48ee83b889
OPENGL: Properly initialize the graphics manager again.
...
Starting with r52503 the graphics manager's only initialize their event
observer when initEventObserver is called. It seems like it was an
oversight that this was not done in OSystem_SDL::setGraphicsMode, when a new
graphics manager was initialized.
This should fix window resizing with the OpenGL graphic's manager and mouse
movement.
svn-id: r52506
2010-09-03 15:52:31 +00:00
Alejandro Marzini
9136724110
SDL/OPENGL: Fix backend initialization when building with ENABLE_VKEYBD.
...
svn-id: r52503
2010-09-03 04:23:01 +00:00
Alejandro Marzini
5c392df447
SDL/OPENGL: Fix segfault when using -g command line option.
...
svn-id: r52307
2010-08-23 19:44:39 +00:00
Eugene Sandulenko
26dc4c2425
DINGOO: new port. Patch #3039277
...
svn-id: r52210
2010-08-19 12:43:37 +00:00
Alejandro Marzini
7dbe257da8
OPENGL: Add support for BGR and rgb(a) reversed formats (Not available for GLES). General cleanup and commenting.
...
svn-id: r51559
2010-07-31 22:54:10 +00:00
Alejandro Marzini
7b070bbef8
SDL/OPENGL: Add ability to switch between SDL and OpenGL graphics managers.
...
OSystem_SDL will create a merged list of all graphics modes from SDL and OpenGL. When the user changes the graphics mode in options and restarts ScummVM should switch to that graphics mode in the corresponding graphics manager.
svn-id: r51493
2010-07-30 03:31:05 +00:00
Alejandro Marzini
0e748c5a97
Added basic cursor drawing.
...
svn-id: r50954
2010-07-16 23:50:46 +00:00
Alejandro Marzini
9ef2fc4744
Fixed doing OpenGL calls before a graphical context was created.
...
svn-id: r50905
2010-07-15 04:01:41 +00:00
Alejandro Marzini
84ceae9328
Check if USE_OPENGL is defined for compiling OpenGL code.
...
svn-id: r50842
2010-07-13 05:38:10 +00:00
Max Horn
dcd520ce31
Get rid of yet another global object with constructor
...
svn-id: r50835
2010-07-12 23:19:56 +00:00
Alejandro Marzini
4dca7c7e02
Moved getGraphicsManager() from OSystem_SDL to ModularBackend. Moved public SDL graphics manager functions to graphics manager (Allowing OpenGLSdlGraphicsMaanger to be used with other SDL managers easily). Removed BaseSdlGraphicsManager. Implemented in the opengl manager basic screen functions.
...
svn-id: r50796
2010-07-11 04:32:24 +00:00
Alejandro Marzini
85034dc730
Added BaseSdlGraphicsManager. Added GLTexture.
...
svn-id: r50795
2010-07-10 22:47:29 +00:00
Alejandro Marzini
fd77e4b09c
Modularized Linuxmoto port.
...
svn-id: r50474
2010-06-29 01:08:36 +00:00
Alejandro Marzini
936f558579
Improved getDefaultConfigFileName(). Code cleanup.
...
svn-id: r50364
2010-06-27 05:12:37 +00:00
Johannes Schickel
09b4f7cbed
Define WIN32_LEAN_AND_MEAN before including windows.h.
...
This will cause our code to include less functionality, but might on the other hand fasten up the compilation.
svn-id: r50346
2010-06-26 21:55:52 +00:00
Alejandro Marzini
70e9a5b951
Removed DEFAULT_CONFIG_FILE define in favor of new getConfigFileNameString function.
...
svn-id: r50301
2010-06-26 03:44:47 +00:00
Alejandro Marzini
307d7aeb4f
Added a init function to OSystem_SDL for early backend setup, and so allowing better sub classing.
...
svn-id: r50224
2010-06-24 17:37:09 +00:00
Alejandro Marzini
d89cb33bcb
Refactored SDL mixer manager. Created a SdlMixerManager subclass for Mac OSX.
...
svn-id: r50198
2010-06-24 04:11:54 +00:00
Alejandro Marzini
04dce6a106
Fixed AudioCDManager not having a public inheritance. Backend code cleanup.
...
svn-id: r50189
2010-06-23 19:34:07 +00:00
Alejandro Marzini
9d41a45976
Created win32 port from sdl backend.
...
svn-id: r50103
2010-06-20 22:45:09 +00:00
Alejandro Marzini
4a850209d7
Removed getMillis, delayMillis and getTimeAndDate functions from TimerManager.
...
svn-id: r50095
2010-06-20 20:11:30 +00:00
Alejandro Marzini
d2f9355aee
Improved ModularBackend and OSystem_SDL destructors.
...
svn-id: r49679
2010-06-15 05:15:34 +00:00
Alejandro Marzini
77f114b835
Added SdlTimerManager. Added getMillis, delayMillis and getTimeAndDate to Common::TimerManager, DefaultTimerManager and ModularBackend. Removed timer code from OSystem_SDL.
...
svn-id: r49637
2010-06-13 21:09:52 +00:00
Alejandro Marzini
360b82858c
Added SdlEventManager.
...
svn-id: r49635
2010-06-13 20:31:25 +00:00
Alejandro Marzini
3cfa482b43
Created SdlMixerImpl. Added setSampleRate method to Audio::MixerImpl. Updated and removed mixer code in OSystem_SDL for using SdlMixerImpl.
...
svn-id: r49602
2010-06-12 02:54:51 +00:00
Alejandro Marzini
b49814f274
Fixed compilation error on Mac.
...
svn-id: r49600
2010-06-11 23:04:57 +00:00
Alejandro Marzini
e81fb60d34
Add Common::EventSource inheritance for ModularBackend. OSystem_SDL now subclass from ModularBackend insteand of BaseBackend. Added forceFullRedraw() to SdlGraphicsManager and removed _modeChanged.
...
svn-id: r49590
2010-06-11 02:50:25 +00:00
Alejandro Marzini
7b63e8ae25
Made creation of SdlMutexManager earlier than other modules.
...
svn-id: r49555
2010-06-10 03:16:50 +00:00
Alejandro Marzini
e991cd8c53
- Revised abstract AudioCDManager.
...
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem.
- Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL.
svn-id: r49548
2010-06-09 20:09:57 +00:00
Alejandro Marzini
56b9e6c9b7
Removed code that is now in managers. Added mutex and graphics manager initialization and functions redirections.
...
svn-id: r49473
2010-06-07 03:19:18 +00:00
Max Horn
767edc91fa
OSYSTEM: Get rid of kFeatureAutoComputeDirtyRects
...
svn-id: r49388
2010-06-02 00:52:57 +00:00
Max Horn
93867d567f
Inline palettes in SDL backend into class OSystem_SDL
...
svn-id: r49383
2010-06-01 22:28:24 +00:00
Eugene Sandulenko
01c55efc95
SDL: Split quit() method into deinit() so error codes could be returned.
...
svn-id: r49131
2010-05-21 18:22:11 +00:00
Eugene Sandulenko
e7330aa0af
Fix spelling
...
svn-id: r49130
2010-05-21 18:18:52 +00:00
Andre Heider
be0885e9d1
Revert r48979. Instead, make the HQ scalers depend on the normal ones. Configure reflects that now.
...
svn-id: r48996
2010-05-10 17:25:12 +00:00
Andre Heider
998531a022
Since configure allows HQ scalers without the normal onces, allow this combination.
...
svn-id: r48979
2010-05-09 12:30:20 +00:00
Andre Heider
a3e428f6db
Rename DISABLE_*SCALERS to USE_*SCALERS, and move the mk/cpp defines to configure.
...
svn-id: r48977
2010-05-09 11:00:17 +00:00
Max Horn
9b837d66d4
Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the MixerImpl constructor
...
svn-id: r48238
2010-03-11 23:39:51 +00:00
Max Horn
c97ee14a65
Remove last traces of OSystem::getOutputSampleRate()
...
svn-id: r48229
2010-03-10 21:01:44 +00:00
Yotam Barnoy
ef330ed9b4
Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
...
svn-id: r48101
2010-02-21 04:04:13 +00:00
Johannes Schickel
157a1df30d
Fix sample buffer calculation. Now it really asks for a buffer of 2048 samples for 22050Hz, like the comment states.
...
svn-id: r47558
2010-01-25 17:59:05 +00:00
Paweł Kołodziejski
737f9312e5
samsungtv: no need anymore exception for broken SDL_ShowCursor
...
svn-id: r45931
2009-11-15 21:57:28 +00:00
Paweł Kołodziejski
2a1cd33a46
added more cases for samsungtv to allow reuse main sdl code
...
svn-id: r45835
2009-11-11 14:36:46 +00:00
Paweł Kołodziejski
a3363e6e1f
samsungtv: move DEFAULT_CONFIG_FILE into main sdl code to prevent code duplication
...
svn-id: r45831
2009-11-11 14:21:58 +00:00
Max Horn
fc1758f33b
SDL: Factor code from OSystem_SDL::pollEvent into various new virtual methods, to make it easier to customize these (no code indention changes for easier diffing)
...
svn-id: r45792
2009-11-09 23:31:46 +00:00