Commit Graph
455 Commits
Author SHA1 Message Date
Henrik Rydgård bf4a5f0352 Detect the Android UIMode, use as device type. For better automatic configuration for things like Android TV. 2015-04-03 11:13:38 +02:00
Henrik Rydgård 3ffd5dda1e Merge pull request #264 from Bigpet/vs2015
Make compilable with VS2015
2015-03-06 21:45:00 +01:00
Peter Tissen 30a362f227 Make compilable with VS2015
So Microsoft decided to make their C runtime conform to C99
2015-03-06 21:01:19 +01:00
Henrik Rydgard 044cc8e950 clock_gettime(MONOTONIC) seems more appropriate than gettimeofday for our purposes.
Reluctant to do this before 1.0 though so I'll leave it as a pull request for now.
2015-01-31 11:35:53 +01:00
Unknown W. Brackets 3af3452d7e Resize in Qt like in other backends.
Should fix switching to fullscren and probably also resizing in general.
2015-01-18 15:29:14 -08:00
Henrik Rydgard a506ba2e83 Expose/fake native display refresh rate. Only has a real value on Android. 2015-01-14 00:27:21 +01:00
Henrik Rydgard 1b5bf730ca Same as the last one for BlackBerry and Qt 2015-01-11 14:17:23 +01:00
Henrik Rydgard b6fea8a355 SDL: Implement SYSPROP_AUDIO_SAMPLE_RATE query 2015-01-11 14:15:26 +01:00
Henrik Rydgard 9201103abe Get rid of the Java audio path. We now only support Android 2.3+ where it's not needed.
Also, expose the optimal sample rate for the platform so we can show it in the UI.
2015-01-11 11:39:30 +01:00
Henrik Rydgard 673491e568 Whitespace fix 2015-01-02 17:25:23 +01:00
Henrik Rydgard 7f0387a31e Improves buffer overflow protection in LOG macros. Replaces #250.
Also some warning fixes.
2015-01-02 16:36:43 +01:00
Henrik Rydgard 4dce24d05c Improve Moga version detection - do it after the connect event. 2015-01-01 13:34:32 +01:00
Unknown W. Brackets 9f490ddb0f Symbian buildfix. 2014-12-31 10:26:10 -08:00
Unknown W. Brackets 48cbcc9a5e Read from sockets using larger, dynamic buffers.
1024 is too small for downloading things.
2014-12-31 09:36:37 -08:00
Unknown W. Brackets 6562ae4ebc Minor warning fixes. 2014-12-30 10:06:09 -08:00
Unknown W. Brackets 826b12bb70 Tiny optimization for real_time_now() on win. 2014-12-29 10:07:47 -08:00
Gabriel 9eceb70492 Pass -D SDL when SDL is used 2014-12-19 00:03:46 +01:00
Henrik Rydgard c958ca6b4c Add version argument to NativeGetAppInfo 2014-12-18 22:50:17 +01:00
Henrik Rydgård 87d2436f82 Merge pull request #243 from LoungeKatt/patch-1
use libc++ for iOS to avoid additional directives
2014-12-18 22:42:08 +01:00
Henrik Rydgard 7d86cb2c04 Port my old webserver from the predecessor to native 2014-12-15 00:06:54 +01:00
Lioncash 60f8132d2e stringutil: Add early-exit case to ReplaceAll
If both 'replaceands' are the same, the result string can just be returned.
2014-12-08 14:07:53 -05:00
TwistedUmbrella a7a9965617 use libc++ for iOS to avoid additional directives 2014-12-05 19:45:51 -05:00
Henrik Rydgård 524fceea5c Fix text input on SDL platforms. Make V_GONE more consistent. 2014-11-25 19:41:38 +01:00
Unknown W. Brackets 3de556b248 Handle commonly mixed-case headers better.
Sometimes you'll see Content-length, etc.
2014-11-25 00:30:13 -08:00
Unknown W. Brackets c85fb55502 Fix Take() methods. 2014-11-24 07:47:57 -08:00
Unknown W. Brackets 73d5ad3b5c Make the HTTP client more generic.
This way we can send other headers and use HEAD requests.
2014-11-23 16:12:54 -08:00
Sacha b2ff5bc9f3 Fix backtrace ifdef. Failed on Linux systems that used uclibc. It is actually only available for glibc. 2014-11-18 16:17:56 +10:00
xsacha 62f7b51536 Remove SDL1 code hiding in GLES2 paths. 2014-11-18 13:34:49 +10:00
Henrik Rydgard ffee75fe5d Warning fixes 2014-11-16 16:44:32 +01:00
Sacha 1e847f977d Typo fix. 2014-11-14 03:13:01 +10:00
Sacha dea2ae0950 SDL: Support low resolution displays by automatically using fullscreen when window is too large. 2014-11-14 01:38:50 +10:00
Unknown W. Brackets cfc1855620 Correctly append to a fixed buffer while logging. 2014-11-05 08:07:33 -08:00
beaumanvienna e5682161da merged with upstream / amended SDL2 multi monitor support 2014-10-15 22:35:03 +02:00
Sacha d3743d0f39 Fix pause menu on Blackberry. 2014-10-09 04:58:47 +10:00
Henrik Rydgård dd235f7f24 Merge pull request #239 from fcooper/master-no-x11
base: Allow building when not using X11 on a FBDEV based system
2014-10-07 00:44:44 +02:00
Henrik Rydgård 6d1560547e Merge branch 'PGGB-sdl2' 2014-10-05 14:45:35 +02:00
Henrik Rydgård d44a702f1e Merge branch 'sdl2' of github.com:PGGB/native into PGGB-sdl2 2014-10-05 14:21:47 +02:00
Franklin S Cooper Jr c5bb2c7b23 base: Allow building when not using X11 on a FBDEV based system
* Currently building base will fail on non X11 based systems due to
  inclusion of X11 headers and some calls to X11 functions.
* Portions of the code currently attempts to avoid calling X11 functions
  when fbdev is used. This patch adds additional checks to avoid X11 calls.

Signed-off-by: Franklin S Cooper Jr <fcooper27@gmail.com>
2014-09-26 18:56:17 -05:00
beaumanvienna d54daa2ea5 amendement for sdl version after Qt changes 2014-09-25 21:59:45 +02:00
beaumanvienna 48856951a7 amendments for: global variable 'fullscreenCLI'/move on top timer/Qt fullscreen code 2014-09-24 23:23:25 +02:00
beaumanvienna e11f403a8e dual head support for Qt reworked / --fullscreen for Qt / fullscreen top most 2014-09-23 22:30:50 +02:00
beaumanvienna 3a918141ef dual head support for Qt reworked / --fullscreen for Qt / fullscreen top most 2014-09-23 22:29:02 +02:00
beaumanvienna 66c585e931 dual head support (SDL_VIDEO_FULLSCREEN_HEAD) for Qt and SDL2 2014-09-22 20:08:02 +02:00
Henrik Rydgard 6ee862b564 Increase some buffer sizes 2014-09-14 00:13:24 +02:00
Sacha 3c0d666e90 Qt audio sounds a lot better with a larger mixlen.
I suppose real buffers would be a proper solution although I can't seem to get it working.
2014-09-10 05:12:35 +10:00
Henrik Rydgard ef3912f63f Proper msvc implementation of snprintf - _snprintf is different (does not add a null terminator) 2014-09-06 10:29:09 +02:00
Daniel Nagel 4a85cbe404 Make sure fullscreen state is properly reflected in the UI 2014-09-04 10:20:04 +02:00
Daniel Nagel 439ea67cc2 Add error handling for SDL_GL_CreateContext 2014-09-02 07:34:08 +02:00
Daniel Nagel 66c19727ce Add missing mode flag 2014-09-01 20:24:26 +02:00
Daniel Nagel d4014f5f7f Update to SDL2 2014-09-01 15:46:14 +02:00