Commit graph

609 commits

Author SHA1 Message Date
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
75e8452b6e OPENGL: Merged from trunk, from rev 52105 to 53396.
This includes an rather hacky attempt to merge all the recent gp2x backend
changes into the branch. I suppose the gp2x backend and probably all new
backends, i.e. gph, dingux etc., might not compile anymore.

Since I have no way of testing those it would be nice if porters could look
into getting those up to speed in this branch.

svn-id: r53399
2010-10-13 03:57:44 +00:00
Jordi Vilalta Prat
8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Max Horn
1d3ce126ea SDL: Fix for 32 bit mode support (untested; might be good for backporting, not sure, somebody should verify)
svn-id: r52934
2010-09-28 20:29:25 +00:00
Torbjörn Andersson
c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
John Willis
2e1b4278e2 SDL: Add masks to the SDL backend to support the OpenPandora backend.
svn-id: r52599
2010-09-06 17:28:17 +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
Martin Kiewitz
c0b119feda SCI: still set game cursor, when mouse outside
of ScummVM window. Just don't change actual mouse position

svn-id: r52472
2010-08-31 13:05:15 +00:00
Thierry Crozat
37027d6531 I18N: Add "lowres" context for several GUI strings when in 1x mode.
This enables translators to use a different translation for these strings in
1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes.

svn-id: r52461
2010-08-30 22:24:40 +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
Alejandro Marzini
0df6bdde1c AMIGAOS: Fix build.
svn-id: r52306
2010-08-23 19:40:18 +00:00
Alejandro Marzini
f27a4df548 AMIGAOS: Again, fix build.
svn-id: r52304
2010-08-23 18:52:10 +00:00
Alejandro Marzini
6164d1c0cb AMIGAOS: Fix build.
svn-id: r52303
2010-08-23 18:37:17 +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
fb4086cadb Merged from trunk, from Rev 50841 to HEAD
svn-id: r51495
2010-07-30 05:28:09 +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
ffb5868ac5 SDL: Add SDL backend subfolders paths to makefile MODULE_DIRS.
This should fix subfolders sources not recompiling after a header change.

svn-id: r51489
2010-07-30 00:48:10 +00:00
Max Horn
d22ebd358d BUILD: Unify how MODULE_DIRS is computed for backends
This should help avoid situations where MODULE_DIRS is not set to a
complete list of build dirs (which causes troubles with the automatic
header dependency detection logic).

On the long run, we should replace the relevant code by a macro or also
use rules.mk for this (with yet another if/else case add to it).

svn-id: r51467
2010-07-29 13:03:21 +00:00
Eugene Sandulenko
b3f08d183b SDL: Fix bug #3025258
Bug #3025258: "Cursor Leaves Trail in GUI when Screen is Shaking". Based
on patch provided by eriktorbjorn but extended with another edge case.

svn-id: r51212
2010-07-23 16:38:31 +00:00
Alejandro Marzini
38b4098f67 SDL: Hack to handle special SDL events.
svn-id: r51015
2010-07-19 05:33:58 +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
Max Horn
e2c1ee853a SDL: Tweak OSystem_SDL::detectSupportedFormats a bit
Previously, the code in OSystem_SDL::detectSupportedFormats
assumed that the arrays RGBList and BGRList had the exact
same length, and that the entries in each mirrored those in
the other 100%. Instead of relying on that, the code now
simply iterates over both lists separately. This changes the
resulting order a bit, but since we never gave any
guarantees on that, this should not matter.

svn-id: r50833
2010-07-12 23:19:08 +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
c174d5327b Modularized GP2XWIZ backend.
svn-id: r50514
2010-06-30 04:46:55 +00:00
Matthew Hoops
cd5546f1d1 Override setupIcon() for both Mac OS X and SymbianOS, they have their own icons.
svn-id: r50476
2010-06-29 01:59:10 +00:00
Alejandro Marzini
06290230d5 Updated makefile. Fixed compile errors.
svn-id: r50475
2010-06-29 01:21:30 +00:00
Alejandro Marzini
fd77e4b09c Modularized Linuxmoto port.
svn-id: r50474
2010-06-29 01:08:36 +00:00
Alejandro Marzini
494755cc36 Renamed BufferingSDLMixerManager to DoubleBufferSDLMixerManager.
svn-id: r50458
2010-06-28 20:41:08 +00:00
Alejandro Marzini
c2bc48a772 Fixed String conversion error.
svn-id: r50370
2010-06-27 06:10:09 +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
32b5f5e4ae Removed unused function, fixing a linker error.
svn-id: r50343
2010-06-26 21:05:34 +00:00
Jordi Vilalta Prat
063cef0c28 GUI: Add and improve some messages to translate
svn-id: r50324
2010-06-26 15:48:03 +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
d04a2a266d Modularized Samsung TV port.
svn-id: r50258
2010-06-25 05:02:40 +00:00
Matthew Hoops
96b9c3aa08 Fix linking on Mac OS X.
svn-id: r50256
2010-06-25 00:14:09 +00:00
Alejandro Marzini
e9c12368fc Fix link error with duplicated name files.
svn-id: r50255
2010-06-25 00:02:58 +00:00
Matthew Hoops
a8120dd9d6 Fix compile on Mac OS X (and probably *nix systems).
svn-id: r50254
2010-06-24 23:51:02 +00:00
Alejandro Marzini
de2b74e15a Added missing header.
svn-id: r50253
2010-06-24 23:41:27 +00:00