Commit Graph

  • 7c5173a181 WinRT: build fix for Windows Phone David Ludwig 2013-08-28 11:45:22 -04:00
  • 93507125de WinRT: experimental and preliminary support for XAML-based overlays on Windows 8/RT David Ludwig 2013-08-27 21:21:09 -04:00
  • df865dd615 WinRT: made all WinRT-related TODO comments use the same prefix, "TODO, WinRT" David Ludwig 2013-08-27 13:03:43 -04:00
  • a054e1f200 WinRT: code cleanup wrt. display mode(s) David Ludwig 2013-08-27 12:56:49 -04:00
  • 278c571952 WinRT: renamed "windowsrt" directories to "winrt" David Ludwig 2013-08-27 12:33:36 -04:00
  • b5bba1c457 WinRT: fixed a crash that occurred on device rotation (oops!) David Ludwig 2013-08-27 12:22:02 -04:00
  • f34ae4e23f WinRT: more "Windows RT" to "WinRT" renaming David Ludwig 2013-08-27 12:20:35 -04:00
  • 23334b06c1 WinRT: took out a deprecated TODO-comment David Ludwig 2013-08-27 12:16:42 -04:00
  • e2a0f9890c WinRT: moved the WinRT SDL_VideoDevice out of SDL_WinRTApp This was done to help pave the way for XAML support. David Ludwig 2013-08-27 12:13:45 -04:00
  • 2ebd518380 WinRT: moved the pointer to the global SDL_Window to a separate variable This is a cleanup that is being done to help with WIP XAML support. It may be reverted in the future. David Ludwig 2013-08-27 11:51:17 -04:00
  • 669aa12b7e WinRT: renamed SDL_SYSWM_WINDOWSRT to SDL_SYSWM_WINRT This is part of an overall effort to use the name, "WinRT", rather than "WindowsRT" (or "Windows RT"), as the shorthand name often seems to mean something different than the longhand name. (WinRT is an API, Windows RT is a product name) David Ludwig 2013-08-27 11:44:43 -04:00
  • 38bbbc27f9 WinRT: Windows Phone build fix David Ludwig 2013-08-27 11:40:06 -04:00
  • 558566d117 WinRT: misc code cleanups David Ludwig 2013-08-27 11:39:44 -04:00
  • 48fbe6839c WinRT: removed more hack-code that attempted to help have non-standard window sizes "Non-standard" is defined here as any window size that differs from that provided by WinRT's CoreWindow. David Ludwig 2013-08-27 11:00:52 -04:00
  • 7e217f79c6 WinRT: minor function and variable name cleanup David Ludwig 2013-08-27 10:57:55 -04:00
  • 15ca970fc2 WinRT: made all SDL_Windows get sized to the WinRT-defined window size This change removes some code that attempted to allow non-standard window sizes, the idea of which was to do display scaling, and a hackish one at that. If display scaling is needed, use SDL_Renderer as appropriate. David Ludwig 2013-08-27 10:56:10 -04:00
  • ccbeaad484 WinRT: removed a deprecated hack regarding window resizing and Direct3D viewports David Ludwig 2013-08-27 09:53:58 -04:00
  • d74acd5aaa WinRT: moved most platform-specific keyboard and mouse code to shared locations David Ludwig 2013-08-26 17:17:53 -04:00
  • 2fda2633de WinRT: removed some old debugging code from SDL_mutexP and SDL_mutexV David Ludwig 2013-08-20 22:18:48 -04:00
  • 5187b903b9 WinRT: made a note that WinRT doesn't appear to support modifying a thread's priority David Ludwig 2013-08-20 22:16:09 -04:00
  • 772a538b7f WinRT: made SDL_ThreadID() return the native thread ID, rather than a fake one David Ludwig 2013-08-20 22:04:09 -04:00
  • e27f29bfa9 WinRT: made testthread log output via SDL_Log - this will allow output to be read via Visual C++'s Output pane David Ludwig 2013-08-20 21:55:13 -04:00
  • 6dbbcb0aab WinRT: made the C++11-based threading backend only try to catch exceptions that it knows it (the threading APIs) might throw, rather than all exceptions David Ludwig 2013-08-20 21:54:34 -04:00
  • b59c3af461 WinRT: file naming and placement cleanup - moved SDL_WinRTApp.* from src/video/windowsrt/ to src/core/winrt/, and renamed them to SDL_winrtapp.* (to mimick case-sensitivity used elsewhere in SDL) - renamed all "windowsrt" directories (in src) to "winrt", as the shorthand name is used more often (and, IMO, "WinRT" != "Windows RT", not entirely at least) David Ludwig 2013-08-20 21:22:32 -04:00
  • 51cd30d786 WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer David Ludwig 2013-08-13 20:33:15 -04:00
  • 9cce55ebfa WinRT: fixed a crash in some display orientation hint code David Ludwig 2013-08-13 20:28:48 -04:00
  • 3f511d900f WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code David Ludwig 2013-08-13 20:28:10 -04:00
  • 4e6ccce30f WinRT: Windows Phone 8 build fixes David Ludwig 2013-08-13 20:11:51 -04:00
  • 1ae5d8dea3 WinRT: build fixes and additional WinRT-related integrations with SDL 2.0.0 David Ludwig 2013-08-13 20:09:52 -04:00
  • 373ffd0dac WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d6a8fa507a45) David Ludwig 2013-08-12 22:29:55 -04:00
  • 9d102f71fb Added the platform specific messagebox function to the video function list Sam Lantinga 2013-07-14 11:28:44 -07:00
  • fe1fde60f2 Fixed bug 2130 - Two members of Windows WindowData not initialized Sam Lantinga 2013-10-03 00:54:58 -07:00
  • c68bb41879 SDLK_DELETE should probably be SDLK_BACKSPACE on iOS. Ryan C. Gordon 2013-10-02 22:18:04 -04:00
  • a4b32eb96a Get rid of glGetError() calls in GLES2 renderer. Ryan C. Gordon 2013-10-02 22:16:11 -04:00
  • 94fb9906e4 Uses SDL_UDEV for Linux joystick hotplugging Gabriel Jacobo 2013-10-01 08:47:06 -03:00
  • 7bab7a4662 Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi Sam Lantinga 2013-09-30 22:35:32 -07:00
  • e0ecd82d03 Fixed bug 2122 - SDL_CreateTexture allows illegal texture sizes Sam Lantinga 2013-09-30 22:16:14 -07:00
  • 3795e34c5a Fixed bug 2119 - compiler warnings (-pedantic) SDL_video.h:111:42 Sam Lantinga 2013-09-30 21:57:03 -07:00
  • 205bc71ce7 Removes unused property use_egl from internal structure gl_config Gabriel Jacobo 2013-09-28 19:23:59 -03:00
  • 47484ca01b Fix: SDL_EVDEV_device_removed does not need UDEV Gabriel Jacobo 2013-09-28 19:17:27 -03:00
  • c049a88aca Call AddRef() on the device so it doesn't accidentally get released from underneath the caller. Sam Lantinga 2013-09-28 14:07:17 -07:00
  • ac2735a4a4 Make it clear we're just returning a D3D9 device, allowing for new functions to get other D3D versions Sam Lantinga 2013-09-28 14:07:14 -07:00
  • c045f564ad Added a hint to create the D3D device in thread-safe mode: SDL_HINT_RENDER_DIRECT3D_THREADSAFE Sam Lantinga 2013-09-28 14:07:08 -07:00
  • 4eac5bc7be Added platform specific call: SDL_RenderGetD3DDevice() Sam Lantinga 2013-09-28 14:07:05 -07:00
  • c2caca9f44 Moved SDL_Direct3D9GetAdapterIndex() to SDL_windowsvideo.c since it doesn't belong in the window code. Sam Lantinga 2013-09-28 14:06:59 -07:00
  • e90c3d6709 Implemented SDL_UpdateYUVTexture() for Direct3D Sam Lantinga 2013-09-28 14:06:55 -07:00
  • 5468c2d97f Added missing SDL_assert.h Sam Lantinga 2013-09-28 14:06:51 -07:00
  • b7d5ed3b6f Added optimized YUV texture upload path with SDL_UpdateYUVTexture() Sam Lantinga 2013-09-28 14:06:47 -07:00
  • f31d9e34dd Rolled back my LoadLibrary change. The first failed call causes a dialog to pop up in Windows apps (but not console apps) and that's really bad. I'll have to deal with this in my app. Sam Lantinga 2013-09-28 14:06:39 -07:00
  • 9e20f5c0f7 SDL_LoadObject on Windows now calls LoadLibrary a second time in its EX form whenever the first load fails. This second call uses the "altered" search path for DLL dependencies, which includes searching the directory that the DLL itself lives in. Sam Lantinga 2013-09-28 14:06:31 -07:00
  • dcaec5adaf Moved D3D_LoadDLL and SDL_Direct3D9GetAdapterIndex to SDL_windowswindow.c at Jorgen's insistence. That file is wrapped in a more appropriate define check so it will work if somebody builds a binary without D3D support. Sam Lantinga 2013-09-28 14:06:20 -07:00
  • 9946c863b6 Do not use UDEV references in EVDEV if UDEV has not been detected Gabriel Jacobo 2013-09-28 15:48:32 -03:00
  • 4bfb868d6f Fixed bug 1820 - building SDL as a static library with static runtime doesn't compile/link with visual studio Sam Lantinga 2013-09-28 10:30:51 -07:00
  • dd33e35895 Raspberry Pi support (also unified UDEV and EVDEV support) Gabriel Jacobo 2013-09-28 13:28:19 -03:00
  • 5d90db278a Fixed doxygen warning. Philipp Wiesemann 2013-09-28 12:55:32 +02:00
  • e63e802da3 Corrected name of SDL_Color field from unused to a. Philipp Wiesemann 2013-09-28 12:48:26 +02:00
  • 0b063bdabb Fixed bug 2101 - CWBackPixel causes weird window flickering on window resize Sam Lantinga 2013-09-27 23:47:57 -07:00
  • 2f3c746702 # User Darren Salt <devspam@moreofthesa.me.uk> # Date 1379621782 -3600 # Thu Sep 19 21:16:22 2013 +0100 Work around a false-positive in the X11 mouse wheel code Sam Lantinga 2013-09-27 23:35:17 -07:00
  • 537c42dacd Fixed bug 2100 - directfb fails to build Sam Lantinga 2013-09-27 23:29:05 -07:00
  • b93ff3b6ef Fixed the name of the environment variable to match the name of the hint. Sam Lantinga 2013-09-27 23:19:22 -07:00
  • fab88c0df2 add in High DPI support (aka Retina) Edward Rudd 2013-09-20 13:43:00 -04:00
  • 2ce681a1a7 Default to OpenGL ES 2.0 instead of 1.0 when it's available. Sam Lantinga 2013-09-27 22:09:51 -07:00
  • 868e2201db Fixed syntax error in C style block comment. Sam Lantinga 2013-09-14 11:25:52 -07:00
  • 6b60bb7ad5 Don't incorrectly report success for negative swap intervals on Mac OS X. Ryan C. Gordon 2013-09-14 01:30:57 -04:00
  • c1a125c267 Added SDL_Direct3D9GetAdapterIndex(), which returns the adapter index you would pass into CreateDevice to get your device on the right monitor in full screen mode. This fixes the default adapter in SDL_render_d3d.c, which means that tests will work fullscreen off the main monitor now. Sam Lantinga 2013-09-13 17:42:46 -07:00
  • a32cb2f92f Fix X11_RestoreWindow() and X11_RaiseWindow() to properly do window activation. Sam Lantinga 2013-09-13 17:42:38 -07:00
  • c5bd664757 Mac: Translate Ctrl-Left click to right click. Sam Lantinga 2013-09-13 17:42:31 -07:00
  • 1763ab9b55 Mac: Turn off momentum-based scrolling. Sam Lantinga 2013-09-13 17:41:17 -07:00
  • 451e30f45f Mac: Fix cast warning. Sam Lantinga 2013-09-13 17:40:41 -07:00
  • 7a3c8f1213 [SDL] X11+GL: Allow Visual override for GL windows. pgriffais@spaceport 2013-09-10 18:25:13 -07:00
  • 4ec784c0d5 Workaround for compiling with /W4 warnings on Visual C++. Ryan C. Gordon 2013-09-07 13:57:20 -04:00
  • 19b1e1f53f Disable thread naming on Win64 for now. Ryan C. Gordon 2013-09-07 13:47:14 -04:00
  • fdf0494a0a Fixed bug 2090 - Some joystick inputs are delayed on FreeBSD Sam Lantinga 2013-09-06 20:54:14 -07:00
  • c7f635ec01 Fixed time comparison and explicitly delay 1 ms instead of an arbitrary scheduled time. Sam Lantinga 2013-09-06 20:45:08 -07:00
  • 10f5e37d2e Fix to buffer overrun in SDL_JoystickGetGUIDString(). Jørgen P. Tjernø 2013-09-05 15:49:57 -07:00
  • 0a093f4eea Fixed bug 2076 - OpenGL doesn't work with --disable-threads Sam Lantinga 2013-09-05 07:15:26 -07:00
  • 32810bdaa3 Fixed bug 2081 - Add name to SDL_Point structure Sam Lantinga 2013-09-05 07:02:27 -07:00
  • 47b4f56927 Fixed bug 2082 - SDL stdlib implementation does not force upper case for %X format specifier Sam Lantinga 2013-09-05 06:59:34 -07:00
  • d7850de4ad Fixed bug 2084 - SDL_log xxx on Android outputs to Logcat with incorrect priority. Sam Lantinga 2013-09-05 06:43:34 -07:00
  • 4e510b3a87 The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const. Ryan C. Gordon 2013-09-04 23:40:11 -04:00
  • 314ecabd38 Enabled thread naming on Windows. Ryan C. Gordon 2013-08-31 01:36:38 -04:00
  • 6b6b23633c Fixes bug #2040, prepare SDL_GL_CONTEXT_EGL for deprecation on v2.1 Gabriel Jacobo 2013-08-29 15:02:32 -03:00
  • eefc8fdad1 Fixes bug #2074 - Thanks Sylvain! Gabriel Jacobo 2013-08-29 14:03:44 -03:00
  • da23163fbc Christoph Mallon: Replace strlen(x) == 0 (O(n)) by x[0] == '\0' (O(1)). Sam Lantinga 2013-08-29 08:30:21 -07:00
  • 6d9d4b6eba Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x) Sam Lantinga 2013-08-29 08:29:51 -07:00
  • 753aae78fc Christoph Mallon: Remove pointless if (x) before SDL_free(x) Sam Lantinga 2013-08-29 08:29:21 -07:00
  • 79bc5ff6ac Christoph Mallon: Correct indendation. Sam Lantinga 2013-08-29 08:27:25 -07:00
  • e5bdcdce26 Christoph Mallon: Use SDL_arraysize() Sam Lantinga 2013-08-29 08:26:55 -07:00
  • 46659d953c Christoph Mallon: Simplify assignment. Sam Lantinga 2013-08-29 08:26:24 -07:00
  • 8f70297c38 Christoph Mallon: Report an error, if creating the directories in SDL_GetPrefPath() failed. Sam Lantinga 2013-08-29 08:25:54 -07:00
  • 3a2343d106 Christoph Mallon: Remove lone /* if */ comment. Sam Lantinga 2013-08-29 08:25:24 -07:00
  • 1f0046b99f Christoph Mallon: Simplify avoidance of duplicate / in SDL_GetPrefPath() Sam Lantinga 2013-08-29 08:24:43 -07:00
  • 1e3a064b1f Change order we enumerate Windows joysticks. Ryan C. Gordon 2013-08-28 22:09:17 -04:00
  • 3d31c4ae53 Don't corrupt XInput device state during SDL_SYS_JoystickClose(). Ryan C. Gordon 2013-08-28 22:07:54 -04:00
  • 5c4541e9bc Fix endlines for logging via OutputDebugString(). Ryan C. Gordon 2013-08-28 22:05:16 -04:00
  • 39a1eb3f22 Make XInput joystick names match the numbers on the device. Ryan C. Gordon 2013-08-28 17:17:21 -04:00
  • efb67d6fdc Fixed comment typo. Ryan C. Gordon 2013-08-28 17:12:07 -04:00
  • 2291afc34f Reworked XInput and DirectInput joystick code. Ryan C. Gordon 2013-08-28 16:43:47 -04:00
  • 358ea2ddfe Better XInput detection code for DirectInput device enumeration. Ryan C. Gordon 2013-08-28 16:35:32 -04:00
  • 6812b6f714 Fixed testgamecontroller output to make sense. Ryan C. Gordon 2013-08-28 00:07:02 -04:00