Commit Graph

5580 Commits

Author SHA1 Message Date
Johannes Schickel
366e164705 SDL: Implement initial support for resizable window with SDL2.
The code is disabled for now.
2015-12-18 19:12:11 +01:00
Thierry Crozat
ef62422e59 OSX: Fix menus when using SDL2
We remove the menus added by SDL before inserting our own menus,
but the code assumed that there were two SDL generated menus. SDL2
actually adds three menus. So the new code makes no assumptions on
the number of menus so that it works with both SDL1.2 and SDL2.

Also fix an issue on OS X 10.4 and earlier that caused the app menu
to be nameless.
2015-12-16 20:42:11 +00:00
Bastien Bouclet
f37fb24caa PS3: Set the default audio output rate to 48000 Hz
SDL does an awful job at resampling 44100 -> 48000 Hz
2015-12-15 20:10:19 +01:00
Bastien Bouclet
aa9191c4c4 PS3: Remove the SDL2 mixer manager.
It was only used by the PS3 backend, and the standard SDL mixer was fixed
to work in the PS3 case.
2015-12-15 20:10:19 +01:00
Bastien Bouclet
f985a039d5 SDL: Ensure the audio sample format is supported
When SDL returns an unsupported audio sample format, ask
SDL to do resampling to the one ScummVM expects.

This is needed for the PS3 which natively only supports
32 bits floating point as a sample format.
2015-12-15 20:10:19 +01:00
Bastien Bouclet
b9a1074999 PS3: Make use of an updated SDL2 version
This version, available at https://bitbucket.org/bgK/sdl_psl1ght, is based on SDL 2.0.3.
2015-12-15 20:10:19 +01:00
Johannes Schickel
64f9c902dd OPENGL: Smooth mouse experience when black bars are visible.
This gets rid of the feeling of the mouse sticking to black borders by using
the full output resolution as area for tracking game mouse movement. The same
behavior is present in plain SDL output with SDL2.
2015-12-14 20:26:05 +01:00
Johannes Schickel
862e4302a7 WIN32: Fix building for (some) MinGW64 toolchains. 2015-12-14 17:15:18 +01:00
Johannes Schickel
86db21467e SDL: Slight formatting fixes. 2015-12-13 23:53:27 +01:00
Johannes Schickel
898773e12f OPENGLSDL: Set proper mouse emulation dimensions.
Formerly we did not initialize the mouse emulation from SdlEventSource
properly. Now hopefully joysticks etc. should work fine with the SDL OpenGL
output too.
2015-12-13 23:53:27 +01:00
Johannes Schickel
5d48e211aa SDL: Fix mouse emulation with SDL2.
The mouse emulation via keyboard (or other means) was broken with
079037b739.
2015-12-13 21:30:25 +01:00
Johannes Schickel
942d0fdad4 OPENGL: Limit scissor override to invisible overlay.
This fixes some corner cases which caused black bars to appear for a few screen
updates when the overlay is visible.
2015-12-13 21:30:25 +01:00
Johannes Schickel
cbc517f14f SDL: Fix warpMouse for SDL2.
Thanks to bgK for noticing.
2015-12-13 15:44:42 +01:00
Johannes Schickel
693834e8c6 OPENGL: Implement black borders using scissor test. 2015-12-12 22:40:20 +01:00
Johannes Schickel
f65a8b2689 OPENGL: Only redraw screen when actual changes happened. 2015-12-12 22:31:35 +01:00
Johannes Schickel
fe2ee9ecf5 OPENGL: Refactor screen refresh handling.
Subclasses of OpenGLGraphicsManager are now supposed to supply a refreshScreen
function which handles actual screen updating (for example, buffer swapping).
2015-12-12 22:31:35 +01:00
Johannes Schickel
3232050dfc OPENGL: Fix include guard name. 2015-12-12 22:31:35 +01:00
Johannes Schickel
33be7ef5dd Merge branch 'rpi-sdl2'
This is a manual merge of pull request #632. The history fo the PR has been
cleaned up.
2015-12-08 21:43:34 +01:00
vanfanel
66dbb7f485 SDL/DISPMANX: Remove dispmanx graphics output. 2015-12-08 21:41:40 +01:00
vanfanel
1eecc41ef6 OPENGLSDL: Request GLES1.1 context with SDL2 for GLES targets. 2015-12-08 21:41:40 +01:00
Johannes Schickel
457640a162 SDL: Prevent cursor from leaving screen area in fullscreen with SDL2. 2015-12-08 15:43:36 +01:00
Johannes Schickel
079037b739 SDL: Prevent graphics stretching in fullscreen when using SDL2.
As a side effect we get better coordinates from mouse move events in
fullscreen, i.e. we do not get actual window coordinates but something close
to actual viewport coordinates. The easily noticable issue is that mouse
coordinates inside black bars are outside of the viewport. For example, the
x coordinate can get negative when there's a black bar at the left side.
2015-12-08 15:41:10 +01:00
Eugene Sandulenko
bfb326a4a2 Merge pull request #631 from fedor4ever/fedor4ever-patch-1
SYMBIAN: various fixes in build scripts
2015-12-06 16:24:44 +01:00
Fedor
84c516d47a Symbian: cleanup build script
Add missed engines, all engines ordered by names, simplified and clear comments
2015-12-03 23:43:22 +03:00
Fedor
9cdcce6bc6 Symbian: add Sherlock engine support 2015-12-03 23:31:20 +03:00
Torbjörn Andersson
93b2a2e5c6 TIMIDITY: Fix resource leak (CID 1003919) 2015-11-30 22:21:35 +01:00
Fedor Strizhnev
f6ea588b89 Symbian: fix build issues
Add new linker options to remove useless code
Add file not parsed by script
2015-11-22 23:36:47 +03:00
Fedor Strizhnev
296199086a Symbian: add new engine 2015-11-22 23:22:36 +03:00
Fedor Strizhnev
96b2706b29 Symbian: fix complation issues 2015-11-22 23:20:58 +03:00
Fedor Strizhnev
a155ba6542 Symbian: add new engine to help file 2015-11-22 23:17:54 +03:00
Fedor Strizhnev
c282884276 Symbian: help file build once now 2015-11-22 23:13:32 +03:00
vanfanel
9d831d0c42 SDL/DISPMANX Fixed small issues with merging: Use append_var, fix spacing issues and changed SurfaceSdlGraphicsManager constructor call parameters on DispmanXSdlGraphicsManager constructor. 2015-11-12 14:03:14 +01:00
vanfanel
99739a13fe Merge branch 'master' into dispmanx 2015-11-11 17:56:12 +01:00
vanfanel
37e157a11c SDL/DISPMANX Make additional notes on README.RASPBERRYPI telling users to manually disable some features that are sub-optimal on the Pi when they don't pass a host parameter 2015-10-20 21:15:26 +02:00
vanfanel
c2c95cc95b SDL/DISPMANX Fixed dispmanx activation parameter on README.RASPBERRYPI 2015-10-19 12:12:54 +02:00
vanfanel
c362119572 SDL/DISPMANX Renamed the RASBERRYPI define to the less confusing name of DISPMANX because it controls whether dispmanx rendering backend is enabled or not on the Raspberry Pi. 2015-10-18 20:25:53 +02:00
Kirben
8f9245cfce WIN: Fix mingw64 compilation, by limiting last hack. 2015-10-08 11:02:40 +11:00
Kirben
7e81052150 WIN: Add hack for command line display in Windows versions built with MinGW. 2015-10-08 10:46:05 +11:00
Willem Jan Palenstijn
bf822e7dc0 SYMBIAN: Rename define and rephrase comments 2015-09-14 22:46:19 +02:00
Fedor Strizhnev
c7aa5cb995 SYMBIAN: Delete obsolete fixes for 'remove' 2015-09-14 22:43:35 +02:00
Fedor Strizhnev
99d6dec059 SYMBIAN: Fix compilation error caused by remove macro 2015-09-14 22:43:09 +02:00
vanfanel
fcbecdeaf6 SDL/DISPMANX: Corrected hasFeature() return values and made setFullScreenMode() ignore the enable value. 2015-07-24 12:04:51 +02:00
vanfanel
8382e87baa SDL/DISPMANX: Made minor corrections sugested by fingolfin. 2015-07-24 11:48:21 +02:00
vanfanel
8cf5f96b9e SDL/DISPMANX: Make hasFeature(kFeatureFullscreenMode) return false since dispmanx graphics always run in accelerated fullscreen mode. 2015-07-22 13:33:19 +02:00
vanfanel
b706ca36f1 SDL/DISPMANX: Updated class member names, configure script and asociated files and docs to conform to fingolfin's corrections. 2015-07-22 13:00:45 +02:00
vanfanel
6320a008ec SDL/DISPMANX: Updated rendering code for better buffers management. 2015-07-20 17:15:04 +02:00
vanfanel
bf68de9aa7 RASPBERRYPI: Changed the RGB code for the game screen surface and added RaspberryPi information file. 2015-07-20 17:13:19 +02:00
vanfanel
2592c72cb5 RASPBERRYPI: Rewrote buffering code of the dispmanx graphics driver for stability. 2015-07-20 17:13:19 +02:00
vanfanel
eeb9ec9af9 RASPBERRYPI: Corrected redundant for loop on the dispmanx graphics driver code. 2015-07-20 17:13:19 +02:00
vanfanel
0855b41c07 RASPBERRYPI: Fixed variable names, removed gcc optimization flags, temporary decrease buffers to 2. 2015-07-20 17:11:47 +02:00