Commit graph

117 commits

Author SHA1 Message Date
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel
39aad6ece7 SDL: Move createLogFile implementions to the OSystem_SDL subclasses.
svn-id: r54581
2010-11-29 18:30:23 +00:00
Max Horn
4e0e406181 SDL: Move #include <SDL.h> into a special wrapper file
svn-id: r54572
2010-11-29 16:16:50 +00:00
Max Horn
8f37f6634c SDL: Merge deinit() into OSystem_SDL destructor and overload fatalError
svn-id: r54526
2010-11-28 15:44:34 +00:00
Max Horn
7760077cf5 Merging the gsoc2010-opengl branch
svn-id: r54518
2010-11-28 14:56:31 +00:00
Johannes Schickel
1ad63b431e BACKEND: Switch OSystem::getSystemLanguage return type to Common::String.
This is done as discussed on -devel.

svn-id: r54516
2010-11-28 02:12:33 +00:00
Johannes Schickel
425f284050 SDL: Hook up file logger to log on UNIX-like systems.
As discussed on -devel this always logs to ~/.scummvm/logs/scummvm.log.

svn-id: r54489
2010-11-26 00:51:42 +00:00
Johannes Schickel
189c9bf216 OSYSTEM: Add API to query the system locale.
I also adapted the SDL backend to implement the API.

svn-id: r54479
2010-11-25 18:40:56 +00:00
Johannes Schickel
e1030e53a5 BACKENDS: Implement logging API proposed by Max on -devel.
This commits a slightly modified patch from my patch tracker item #3104630
"OSYSTEM: Add logging API as proposed by Max on -devel".

I was not able to test compilation on Android and SamsungTV, since there is no
toolchain for those on buildbot (or I was too blind to find them).

svn-id: r54339
2010-11-18 19:12:14 +00:00
Max Horn
82e473bc3b BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
This commit contains the AudioCDManager changes from the gsoc2010-opengl
branch. The other changes in that branch are restricted to the backends
directory only (plus configure).

The Nintendo DS and Dreamcast ports still need to be ported over to
the new Audio CD system, but that should be fairly easy to do.

svn-id: r54147
2010-11-08 22:53:36 +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
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
Jordi Vilalta Prat
8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +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
38b4098f67 SDL: Hack to handle special SDL events.
svn-id: r51015
2010-07-19 05:33:58 +00:00
Max Horn
8e9d933658 SDL: Overhaul OSystem_SDL::getSupportedFormats
* Do not use global constructor for the RGBList and BGRList
  tables anymore, by moving them inside a function.
* Update the list of supported formats if the hardware
  screen surface changes. Previously, the list of supported
  pixel formats (and its order) was computed only once and
  then never changed.

svn-id: r50832
2010-07-12 23:18:44 +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
4e50b23005 Cleanup and documentation.
svn-id: r50610
2010-07-03 00:25:06 +00:00
Alejandro Marzini
f9c3a4547c Cleanup and documentation.
svn-id: r50589
2010-07-02 06:44:42 +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
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
Max Horn
703f0ca29c SYSTEM: Unify OSystem::getSupportedFormats() signature
svn-id: r49838
2010-06-15 12:21:08 +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
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
Johannes Schickel
9c8813b6d4 Commit of patch #2980597 "GSoC: GUI: Text input + Right Alt (bug #2978736)".
svn-id: r48524
2010-04-04 22:08:18 +00:00
Max Horn
92c896d883 Patch #2973290: Semicolon cleanup
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
c97ee14a65 Remove last traces of OSystem::getOutputSampleRate()
svn-id: r48229
2010-03-10 21:01:44 +00:00
Max Horn
28c6c600d4 Move some aspect ratio related stuff to graphics/scaler/aspect.h
svn-id: r48186
2010-03-08 10:29:00 +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
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
ad94de73d8 Prevent SDL backend from eating up keypress events with Ctrl+Alt set.
svn-id: r46259
2009-12-04 19:57:33 +00:00
Lars Persson
2811d0fd31 Remove use_scaler defines around enum in order for graphics to compile properly.
svn-id: r46216
2009-11-30 08:55:51 +00:00
Matthew Hoops
bf1ab2f1db Make _mouseKeyColor a uint32 when USE_RGB_COLOR is defined to fix key color with some cursors when using a >8bpp cursor.
svn-id: r45929
2009-11-15 21:49:03 +00:00
Max Horn
58ed9271f5 SDL: cleanup
svn-id: r45817
2009-11-10 22:12:10 +00:00
Max Horn
885cbb5302 SDL: Remove const from new handle*() method for now, to allow using remapKey (ultimately, the goal is to get back the const by changing how remapping works)
svn-id: r45797
2009-11-10 00:01:43 +00:00