Commit Graph

4789 Commits

Author SHA1 Message Date
Johannes Schickel
b8dcd9a25e OPENGL: Fix aspect ratio correction behavior.
Now only 320x200 and 640x400 will result in aspect ratio correction to be used
if the user requested it. This should fix some strechting in Myst/Riven.
2011-08-12 04:06:54 +02:00
Johannes Schickel
a77c29327e OPENGLSDL: Do not change requested window size on resize.
This should help fix a lock up on window managers, which will try to force the
ScummVM window to a certain size, by just requesting the same size over and
over again.

Now we get black borders even in windowed mode when the aspect of the window
does not match the aspect of the game screen (and we are not in "normal" mode),
but that is usually the same in video players too, so shouldn't be too bad.
2011-08-12 03:46:32 +02:00
Paul Gilbert
7ef6c73d61 SDL: Previous commit broke compilation on MSVC
Including cursorman.cpp rather than cursorman.h resulted in the CursorManager class being present in multiple .obj files, resulting in linking errors.
2011-08-11 22:30:46 +10:00
Johannes Schickel
0f6e231356 SDL: Implement a hellish workaround to fix bug #3368143.
The bug in question is "SDL/OpenGL: Crash when switching renderer backend". To
fix it I added a stupid graphics state copying to the SDL backend, in case the
graphics manager is switched. The implementation of this is considered a pure
workaround, no one should ever do it like this in reality... I just want to
die when looking at this... Not sure why I actually committed it.

Anyway it at least makes the OpenGL backend testable for those who do not
want to fiddle with the config file directly.
2011-08-11 04:28:44 +02:00
Johannes Schickel
930f626dab TIMER: Add a comment to explain why we remove the name in removeTimerProc. 2011-08-10 18:42:19 +02:00
Johannes Schickel
c443f113ed TIMER: Remove all names associated with a callback, since all callbacks are removed.
This makes the name removal consistent with the timer proc removal.

It seems we only allow a specific timer proc being added once anymore though.
So this should not change too much right now.
2011-08-10 18:34:08 +02:00
Johannes Schickel
cea06991eb TIMER: Remove name of callback in removeTimerProc.
This should fix #3389673 "LOOM: CD-Version crashes at start". It also fixes the
same error showing up for me in Monkey CD.

The doc changes in 4c7958450f claims the name is used for the event
recorder, but as far as I can tell it is not used right now. Thus depending on
how it is used the behavior of SCUMM removing and adding the same timer aagain
*might* cause problems.

In any way we need to remove the name in removeTimerProc, else RTL + launching
the same game again would be broken too.
2011-08-10 18:22:25 +02:00
Johannes Schickel
a72ab2f448 BACKENDS: Fix compilation. 2011-08-09 14:56:38 +02:00
Fabio Battaglia
3fe81198ff DINGUX: hopefully fix the cursor palette problem
The port wasn't keeping track of the CursorPalette feature
correctly. This should fix it for good.
2011-08-09 14:06:31 +02:00
Fabio Battaglia
521dfaa980 DINGUX: fix compilation 2011-08-09 11:19:18 +02:00
Johannes Schickel
06b95b3543 OPENGL: Add include guard to gltexture.h 2011-08-09 02:14:12 +02:00
Filippos Karapetis
ef695cb7dd OPENGL: Added a temporary hack to fix compilation under Windows, after the latest changes to the SDL interface layer 2011-08-09 02:24:59 +03:00
Johannes Schickel
fd61a83bb5 SDL: Slight clean up in the surface based graphics manager. 2011-08-09 00:04:19 +02:00
Johannes Schickel
04ab0e58b4 SDL: Take advantage of SdlGraphicsManager.
This gets rid of the hacks, where SdlEventSource added events with custom type
numbers to pass SDL_VIDEOEXPOSE and SDL_VIDEORESIZE to the graphics manager.

Furthermore it get rids of the uninituitive and hard to trace way of assigning
the proper mouse coordinates to mouse related events. Formerly it passed the
real screen coordinates through the even dispatching api to the graphics
manager (at least hopefully ;-) and let that handle creating a new event with
the proper coordinates. Now instead SdlEventSource handles the proper
coordinate setup itself.

Since this is a behavior change and I can not test all the SDL based small
devices ports this commit might break compilation for them and more serve it
might also break mouse position behavior. If any of that occurs I am sorry
about it.
2011-08-09 00:03:11 +02:00
Johannes Schickel
0630a88a04 SDL: Let SDL based graphics managers inherit from SdlGraphicsManager.
This also adapts port I can not test (not even the compilation). So if this
breaks anything I am sorry about it.
2011-08-09 00:03:11 +02:00
Johannes Schickel
dedc74abfa SDL: Add a new base class for graphics managers utilizing SDL. 2011-08-09 00:03:10 +02:00
Johannes Schickel
222064cdb6 BACKENDS: Add PaletteManager interface as comments to GraphicsManager.
This should be a little more comfortable about finding out what's needed to
implement a new graphics manager.
2011-08-09 00:03:10 +02:00
Christoph Mallon
a5a8833c05 COMMON: Add DisposablePtr<T>, which replaces many repeated implementations of a dispose flag. 2011-08-07 15:19:08 +02:00
Christoph Mallon
c21f87836e PSP: Pass the stream as reference to PngLoader. 2011-08-07 15:19:08 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Christoph Mallon
bf580e6e6b JANITORIAL: Add missing NL at EOF. 2011-08-07 13:53:33 +02:00
Littleboy
f702cb5695 BACKENDS: Implement notifyError() and clearError() for Win32TaskbarManager 2011-08-06 15:26:49 -04:00
Bastien Bouclet
2daf69267d SDL: Don't rely on SDL keycodes and OSystem keycodes being the same.
SDL 1.3 shuffles keycodes around ...
2011-08-06 15:52:02 +02:00
Eugene Sandulenko
baf65bc872 RECORDER: Added stub for delayMillis() processing 2011-08-06 11:31:12 +01:00
Eugene Sandulenko
2fa17c44ed JANITORIAL: Remove SVN keywords 2011-08-06 11:30:47 +01:00
Eugene Sandulenko
4c7958450f TIMER: Implemented checks for duplicated timers 2011-08-06 11:30:44 +01:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
Oystein Eftevaag
7e7e606919 MACOSX: Turned update support off by default, simplified and cleaned the pull request 2011-08-02 21:00:57 -04:00
Oystein Eftevaag
9044e17499 Merge pull request #52 from CeRiAl/macosx-sparkle
MACOSX: Add Sparkle support
2011-08-02 16:09:58 -07:00
CeRiAl
cede1a3f5c WINCE: Update port specific README 2011-07-20 02:58:12 +02:00
CeRiAl
bc47ce1fef WINCE: Change keymapping for AGI and Simon 1 & 2 2011-07-20 02:14:38 +02:00
CeRiAl
822a2ef3dc WINCE: Move initialization of TimerManager to overloaded init() method. 2011-07-20 02:14:34 +02:00
CeRiAl
edfd998642 WINCE: Update port specific README 2011-07-20 02:14:30 +02:00
CeRiAl
efd9dff556 MACOSX/UPDATES: Add comments which describe what Sparkle is 2011-07-19 22:10:13 +02:00
CeRiAl
32a2026676 MACOSX/UPDATES: Fix compilation for Mac OSX 10.4+ 2011-07-19 21:35:38 +02:00
CeRiAl
f60d6f7a97 MACOSX/UPDATES: Streamline UpdateManager
Moved UpdateManager related code from backends/modular-backend.* to
common/system.*. Added switch --enable/disable-updates to be able
to disable updates support generally.
2011-07-19 21:35:37 +02:00
CeRiAl
828f1884b4 MACOSX: Add Sparkle support 2011-07-19 21:33:01 +02:00
Littleboy
da60ff3ded JANITORIAL: Fix MSVC warnings
- Conversion from double to float
 - Unary minus operator applied to unsigned type
 - ARRAYSIZE redefinition
2011-07-19 14:12:07 -04:00
Marcus Comstedt
5b2e90504c DC: Directory handling fixes
* Include directory nodes in FSList sent to detectGames
  - This is required for correct detection of toon.
* Don't add / at the end of directories found in getChildren
  - It looks like that behaviour was removed from posix-fs a long
    time ago, and now there's apparently code depending on directories
    _not_ having a / at the end of their name...
* Treat games detected in subdirs as duplicates
  - This is a workaround for a detection bug in toon; it will incorrectly
    detect the game in the MISC subdirectory as well.
* Don't avoid directories called "install" in the game selector
  - I don't know if the original reason for ignoring "install" is still
    valid, but the code for doing do so was broken anyway.
2011-07-17 20:59:07 +02:00
CeRiAl
6092b324f3 WINCE: Change default values for "FM_high_quality" & "high_sample_rate"
Changed the default values from "false" to "true" as current devices are
fast enough to handle this. It's still possible to change the values to
"false" if the device isn't fast enough.
2011-07-15 01:39:21 +02:00
Matthew Hoops
5825ccc168 BACKENDS: Fix spelling of 'Mac OS X' 2011-07-13 09:47:03 -04:00
Matthew Hoops
554dda7008 BACKENDS: Fix compilation on case-sensitive Mac OS X 2011-07-13 09:43:16 -04:00
Matthew Hoops
708f7739eb BACKENDS: Fix a typo 2011-07-13 09:30:15 -04:00
Matthew Hoops
7f58d62ba1 BACKENDS: Remove unneeded define check 2011-07-13 09:28:53 -04:00
Matthew Hoops
cde3a3d9a0 BACKENDS: Rename appMenu_osx.* to appmenu_osx.* 2011-07-13 09:26:50 -04:00
Matthew Hoops
19bb69c7ed BACKENDS: Fix compilation on Mac OS X without translation support 2011-07-13 09:20:34 -04:00
Ismail Khatib
648d127cca Merge pull request #51 from CeRiAl/macosx-appmenu-i18n
MACOSX: Add i18n support for Mac OSX application menu
2011-07-12 15:23:40 -07:00
CeRiAl
5a42f2901f MACOSX: Fix application menu i18n compilation for Mac OSX 10.4+ 2011-07-12 00:47:02 +02:00
David-John Willis
c5a945b566 OPENPANDORA: Add explicit location for 'themepath' to the loader script. 2011-07-08 13:21:36 +01:00
David-John Willis
0ab63af113 OPENPANDORA: Change bundle rule to make a SquashFS compressed .PND. 2011-07-07 21:48:42 +01:00