Commit Graph

5694 Commits

Author SHA1 Message Date
Johannes Schickel
da062ad1ea OPENGLSDL: Try to use GL(ES) context SDL2 defaults to. 2016-03-16 20:29:25 +01:00
Johannes Schickel
2277144623 OPENGL: Support RGB555 for OpenGL ES output.
This mode should *not* be used by any new engines/code. If someone is going
to use it and says it works with the OpenGL output, please make them wear a
red uniform and beam them onto a remote planet.
2016-03-16 20:29:25 +01:00
Johannes Schickel
d6d3e17d53 OPENGL: Allow runtime specification of OpenGL mode.
Formerly, we required that the OpenGL mode was fixed at compile time. Now we
allow the code to work with whatever it is given at runtime.

It is still possible to force a context type on compile time.
2016-03-16 20:29:25 +01:00
Johannes Schickel
9816e4f350 OPENGL: Remove support for ARGB8888.
This used to be used by Sword25. Since it is not supported by GLES and no
engine code uses it we drop support. Hopefully, this helps people to realize
they should not use that format in their engine.
2016-03-16 20:29:24 +01:00
Johannes Schickel
e11f4df111 OPENGL: Rename GLCALL to GL_CALL. 2016-03-16 20:29:24 +01:00
Johannes Schickel
4a781737c1 OPENGL: Resolve OpenGL functions on run-time.
Formerly we relied on static linkage. However, in the presense of modern
OpenGL (ES) implementations it is not easily identifable which library to link
against. For example, on Linux amd64 with nVidia drivers and SDL2 setup to
create a GLES 1.1 context one would need to link against libGL.so. However,
traditionally GLES 1.1 required to link against libGLESv1_CM.so. To prevent a
huge mess we simply resolve the OpenGL functions on run-time now and stop
linking against a static library (in most cases).

GLES support needs to be enabled manually on configure time for now.

Tizen changes have NOT been tested.
2016-03-16 20:29:24 +01:00
Johannes Schickel
b3b3d37e3b OPENGL: Define GLCALL in opengl-sys.h.
debug.h is now always included and all calls should be made through GLCALL.
2016-03-16 20:29:24 +01:00
Johannes Schickel
8f3783da09 OPENGL: Add functionality to query OpenGL functions on runtime.
This can and will be used for future extension usage support.

Tizen changes have been untested.
2016-03-16 20:29:24 +01:00
Johannes Schickel
e5e234b864 OPENGL: Refactor GL extension handling slightly. 2016-03-16 20:29:24 +01:00
Johannes Schickel
4ee3623f5d SDL: Fix compilation with SDL2 and MSVC2015. 2016-03-09 22:03:47 +01:00
Eugene Sandulenko
f5f41d7daa GCW0: Remove hardcoded list of skipped engines.
Now we rely on highres feature of the backends
2016-03-09 16:33:52 +01:00
Eugene Sandulenko
8b3f27753e GCW0: Disabled more 640x480-only engines 2016-03-05 13:05:21 +01:00
Johannes Schickel
1f217e3834 WIN32: Fix invalid array accesses when MIDI device listing fails. 2016-03-01 01:14:17 +01:00
Tarek Soliman
ae0ca6c1c2 MAEMO: Update debian/changelog 2016-02-26 21:19:33 -06:00
Eugene Sandulenko
1d1e6ed274 GCW0: Packaging fixes 2016-02-26 21:17:27 +01:00
Eugene Sandulenko
0fe8260a98 GCW0: Update port building and provide port-specific README
Fluidsynth is too problematic, stutters with some games,
so disabling it for the time being.
2016-02-26 20:57:27 +01:00
Marcus Comstedt
9d2d0cafd8 DREAMCAST: Re-fix listing of savegames
The roles of the pattern and filename were reversed, so fixed that.
2016-02-26 19:20:45 +01:00
Vincent Bénony
587d5d5703 IOS: Fixes savegame deletion on sandboxed iOS devices 2016-02-26 09:50:39 +01:00
Johannes Schickel
47f82d439d DREAMCAST: Fix listing of savefiles.
We introduced a new pattern '#' in 06641f29a7.
Starting from that commit all backends were supposed to support it. Dreamcast
was missed. To support it in Dreamcast we now use Common::String::matchString
to do pattern matching.
2016-02-25 21:05:53 +01:00
Eugene Sandulenko
4411155869 GCW0: Trigger keyboard only on button down, not on up, otherwise it required holding 2016-02-24 23:31:37 +01:00
Eugene Sandulenko
2131023913 GCW0: Made packager reenterable 2016-02-24 23:23:02 +01:00
Eugene Sandulenko
22121c5104 GCW0: Disabling more features on GCW0 2016-02-24 23:23:02 +01:00
Eugene Sandulenko
6285d2f565 GCW0: Add release build script 2016-02-24 20:09:48 +01:00
Eugene Sandulenko
fe7ca47ed3 GCW0: Include free soundfont into release package 2016-02-24 19:00:41 +01:00
Johannes Schickel
22a60e6c0b WIN32: Fix plugin provider build for 64bit target. 2016-02-23 22:31:30 +01:00
Johannes Schickel
fd688b73d7 SDL: Work around bug #7038 by limiting mode reset to Win32.
Bug is: "IRIX: X BadMatch when trying to start any 640x480 game".

40e019efd4 introduced resetting the pixel depth
when unloading modes for SDL output. This was required to make mode listing
for OpenGL work on Win8+.

This causes issues on non-Win32 platforms though. SDL might not give us a valid
a pixel depth, causing the resetting to fail. A particular example is X11 on
IRIX, when only 16bit output modes work. Initially SDL tells us that the pixel
depth is 32bit. Trying to set this up causes a crash though.

Since there is no way to validate SDL's return value, we simply limit the reset
to platforms where it is actually required, i.e. Win32.
2016-02-17 16:17:39 +01:00
Johannes Schickel
4145109937 AMIGAOS: Fix native build breakage caused by indented comments in amigaos.mk.
As pointed out by Raziel^.
2016-02-17 12:37:36 +01:00
Hubert Maier
89e9a36af5 AMIGAOS: Fix 'amigaosdist' for in-tree builds on AmigaOS.
AmigaOS's Rexx interpreter seems to have problems with './' in the path to the
Rexx script. We work around this by copying it to the cwd and using it from
there.

Manual merge of PR #669 "AMIGAOS: Fix amigaos.mk to make the rexx script work
on local builds".
2016-02-17 11:58:48 +01:00
Jakub Wilk
d9b00eb3e6 I18N: Fix language code for Swedish
The language code for Swedish is "sv", not "se".
2016-02-15 21:18:53 +00:00
Jakub Wilk
a69526452d I18N: Fix country code for Denmark
The country code for Denmark is DK, not DA.
2016-02-15 21:17:13 +00:00
Eugene Sandulenko
6c895643aa Merge pull request #667 from a-detiste/master
JANITORIAL: Typos detected with lintian & grep
2016-02-15 18:31:50 +01:00
Alexandre Detiste
6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +01:00
Eugene Sandulenko
39991ad4a5 GCW0: Fix virtual keyboard 2016-02-14 23:06:11 +01:00
Johannes Schickel
655f4dfedb WIN32: Fix compilation with MinGW-w64 based Win32 compiler. 2016-02-12 19:22:47 +01:00
Tarek Soliman
d61e365956 MAEMO: Add configure and make extra args env vars
This allows running "make -j4" and similar as part of dpkg-buildpackage
without editing the makefile.
2016-02-09 22:38:04 -06:00
Johannes Schickel
1b21b8b906 AMIGAOS: Fix 'amigaosdist' target for out-of-tree builds. 2016-02-06 17:46:05 +01:00
Eugene Sandulenko
0930018045 RELEASE: This is 1.9.0git 2016-02-05 23:31:25 +01:00
Tarek Soliman
f28ced2e96 MAEMO: Fix default bindings
This code depended on the off by one
bug fixed in 9b8b737
2016-02-05 01:06:54 -06:00
Johannes Schickel
687f6067f5 POSIX: Use XDG specification for default save path.
This is what the XDG Base Directory Specification suggests to use. We still
use ~/.scummvm as default path in case the directory exists.

This tackles an aspect of bug #6036 "POSIX: Use XDG dirs instead of HOME".
2016-02-02 09:16:40 +01:00
Johannes Schickel
2622cded72 POSIX: Move assureDirectoryExists to posix-fs{.h,.cpp}. 2016-02-02 09:16:40 +01:00
Johannes Schickel
dde89c36f5 POSIX: Move default config file location to '$XDG_CONFIG_HOME/scummvm/scummvm.ini'.
This is what the XDG Base Directory Specification suggests to use. We still
use the old location of '~/.scummvmrc' in case that is present.

This tackles an aspect of bug #6036 "POSIX: Use XDG dirs instead of HOME".
2016-02-02 09:16:40 +01:00
Johannes Schickel
79acfd28e9 POSIX: Use modern path for log file.
This makes use use the XDG Base Directory Specification for the log file path.
This tackles one part of bug #6036 "POSIX: Use XDG dirs instead of HOME".
2016-02-02 09:16:40 +01:00
Johannes Schickel
b4e360188f POSIX: Restructure code in OSystem_POSIX::createLogFile. 2016-02-02 09:16:40 +01:00
Johannes Schickel
589c3046aa POSIX: Make assureDirectoryExists create full path if needed.
This is kind of like 'mkdir -p' now. But the permissions are different from
standard POSIX behavior.
2016-02-02 08:45:58 +01:00
Johannes Schickel
d8394d3f77 POSIX: Factor directory creation code into its own function. 2016-02-02 08:45:58 +01:00
Tarek Soliman
be2af06131 MAEMO: Update debian/changelog 2016-02-01 22:40:48 -06:00
Eugene Sandulenko
68ff933206 Merge pull request #657 from lordhoto/scumm-alt-x
ALL: Handle Alt-x internally in SCUMM.
2016-02-01 10:35:13 +01:00
Tarek Soliman
7b521edac7 MAEMO: Package missing engine-data files 2016-01-31 23:04:54 -06:00
Tarek Soliman
6b4255d8e8 MAEMO: Split packaging of engine-data into multiple lines 2016-01-31 23:04:41 -06:00
Johannes Schickel
24c6d50301 SDL: Don't mix our key code with SDL's.
This case for F# keys was forgotten to update in 8530997fff.
2016-02-01 02:23:55 +01:00