Commit Graph

  • 768d4d20db This hack doesn't work very well. I'd rather just show the problem so it can be fixed. Sam Lantinga 2012-10-03 19:39:12 -07:00
  • 58061aad7b Merged Ryan's changes Sam Lantinga 2012-10-03 19:26:07 -07:00
  • 90d4ddcac4 Fixed refresh rate calculation Sam Lantinga 2012-10-03 19:25:08 -07:00
  • 5afe2b45e4 Don't try to query outputs that are not hooked up to a crtc Sam Lantinga 2012-10-03 19:24:11 -07:00
  • 4b635c333f Added a delay hack to let the window manager adjust to the mode change. I'm not sure if this is a good idea, but at least it works sometimes now. :) Sam Lantinga 2012-10-03 19:02:46 -07:00
  • 5624b76a13 Rewritten X11 video mode support to directly set requested modes and exactly restore the desktop mode at shutdown. Sam Lantinga 2012-10-03 18:56:29 -07:00
  • f5d648bfe4 A window being fullscreen takes precedence over coordinate checks This fixes restoring video mode on the second display at shutdown in some circumstances. Sam Lantinga 2012-10-03 18:54:31 -07:00
  • 6812b2e9cf Helps to initialize variables in the right function. :) Ryan C. Gordon 2012-10-03 20:02:13 -04:00
  • f4c5703d8f Fixed compiler warning. Ryan C. Gordon 2012-10-03 19:20:53 -04:00
  • dabd9f547c Use Ctrl modifier for window resize key bindings Sam Lantinga 2012-10-03 13:39:42 -07:00
  • 152311bd12 Added key bindings to resize the window (+/-) Sam Lantinga 2012-10-03 13:38:22 -07:00
  • 80b10a063c Keep track of the configure events we've received from the X server. When programmatically resizing a window on Unity 3D, we'll get a move event with the old size before we get a size event with the new size, and we don't want to clobber our internal state with the old size. Sam Lantinga 2012-10-03 13:37:44 -07:00
  • 939294328b Poke window managers to get them to respect the resize hints. Sam Lantinga 2012-10-03 12:33:42 -07:00
  • 7b6996cf0d Fix the size to the windowed mode, not the fullscreen mode. Sam Lantinga 2012-10-03 12:19:55 -07:00
  • 2d91f7c6fd Always set the size hints for consistent behavior with all window managers, and it wasn't resetting when switching back from fullscreen mode. Sam Lantinga 2012-10-03 12:14:04 -07:00
  • 59085a92bb Fixed compile error - had work in progress in there. Sam Lantinga 2012-10-03 12:04:30 -07:00
  • 0d7982b18c Fixed XRandR code to change resolution on the correct monitor in a multi-monitor setup. Sam Lantinga 2012-10-03 11:33:09 -07:00
  • 12f7e857fb Fixed copying headers to the Framework Sam Lantinga 2012-10-02 23:23:44 -07:00
  • 12c6a1cec8 Fixed bug where SDL thought the window was shown and it wasn't actually. Sam Lantinga 2012-10-02 10:38:10 -07:00
  • 5918660a41 Updated iOS Readme to reflect Game Center integration changes. Gabriel Jacobo 2012-10-02 13:29:59 -03:00
  • 04275d9bfb Fixed texture list when swapping textures (thanks Drake Wilson!) Sam Lantinga 2012-10-02 00:28:23 -07:00
  • 873ecde0ad Initialized default scale for software renderer (thanks Marcus von Appen!) Sam Lantinga 2012-10-01 23:28:19 -07:00
  • a7dc767823 Fixed a compiler warning Sam Lantinga 2012-10-01 23:23:04 -07:00
  • aab04f8c71 Added SDL_RenderSetLogicalSize() and SDL_RenderGetLogicalSize() Sam Lantinga 2012-10-01 22:30:07 -07:00
  • f4bf4989ce The viewport is already scaled to the output coordinates Sam Lantinga 2012-10-01 21:57:09 -07:00
  • 8e121270fa Added SDL_RenderSetScale() and SDL_RenderGetScale() Sam Lantinga 2012-10-01 20:59:33 -07:00
  • 4b7b524cad Do the src and dst rectangle clipping without affecting the surface clip rectangle. Sam Lantinga 2012-10-01 00:56:58 -07:00
  • 484c24ab6a Fixed scaled blitting for complex blit operations (e.g. color modulation and alpha blending) Sam Lantinga 2012-10-01 00:40:26 -07:00
  • b53cdc758a Whoops, that's a header! Sam Lantinga 2012-10-01 00:02:07 -07:00
  • af274bb9f5 Added SDL_dropevents.c to the Visual C projects Sam Lantinga 2012-09-30 23:08:46 -07:00
  • 2030d6d9ab Fixed bug 1593 - SDL_DROPFILE event doesn't work on Windows Sam Lantinga 2012-09-30 11:10:17 -07:00
  • 942de2d4f4 The gl_data is optional for the driver, so don't early out of the context delete call if it doesn't exist. Sam Lantinga 2012-09-30 01:08:48 -07:00
  • adeca7e6a9 Remove the viewcontroller from the window when he OpenGL context is destroyed Sam Lantinga 2012-09-30 01:01:48 -07:00
  • b4ffa7af23 Make sure mode width/height and status bar orientation match Sam Lantinga 2012-09-29 18:52:00 -07:00
  • b2c275e505 Fixed issue with touch input on retina displays Sam Lantinga 2012-09-29 17:38:54 -07:00
  • e84dd30b69 Refactored the UIKit mode code into a separate file so it's cleaner and more consistent with other backends Sam Lantinga 2012-09-29 17:23:40 -07:00
  • 258a8e642a Added a couple new test executables to be ignored Sam Lantinga 2012-09-29 17:22:32 -07:00
  • 8f2b68788d Only change the UI orientation if it's actually necessary for the mode. Sam Lantinga 2012-09-29 16:41:32 -07:00
  • 9ca4ed791b Bring Cocoa application menus up to par with the OS X Human Interface Guidelines, including supporting key equivalents. Sam Lantinga 2012-09-29 03:42:40 -07:00
  • 020b7876b6 Fixed beeping introduced when we started passing key events through the responder chain. Sam Lantinga 2012-09-29 02:50:42 -07:00
  • ab8c4eaac7 If the window is resizable, reset the viewport by default if the window size changes. Sam Lantinga 2012-09-29 01:12:40 -07:00
  • a71bc1b2a2 WINDOW_RESIZED events shouldn't flush WINDOW_SIZE_CHANGED events and vice versa. Sam Lantinga 2012-09-29 01:10:53 -07:00
  • 45d6885a32 Updated support for external video output on the iPad Sam Lantinga 2012-09-29 00:17:34 -07:00
  • d5e110f287 No variable shadowing, reuse the size variable Sam Lantinga 2012-09-29 00:01:32 -07:00
  • 0cdb7950b4 SDL 2.0 supports 32-bit icons with alpha. :) Sam Lantinga 2012-09-28 15:59:36 -07:00
  • 9d6d75b762 Show the size changed window message Sam Lantinga 2012-09-28 14:42:47 -07:00
  • fd4eb6d577 Merged Ryan's commits Sam Lantinga 2012-09-28 14:22:33 -07:00
  • b635286d82 Get the correct screen bounds from xinerama Sam Lantinga 2012-09-28 14:22:18 -07:00
  • 7bcf07766a Print the bounds of each display when showing mode information Sam Lantinga 2012-09-28 14:21:15 -07:00
  • 754d392775 We need to queue the focus in/out changes because they may occur during video mode changes and we can respond to them by triggering more mode changes. Sam Lantinga 2012-09-28 14:01:55 -07:00
  • fa419b737d Don't warn about the window size changing if the window is resizable Sam Lantinga 2012-09-28 14:00:43 -07:00
  • da0203a2b1 Fixed detection of display bounds after a mode switch when Xinerama is enabled. Sam Lantinga 2012-09-28 11:51:16 -07:00
  • 729074f469 Patched to compile on Visual Studio. Ryan C. Gordon 2012-09-28 14:17:30 -04:00
  • cf940902c4 Add a safety net X11 error handler, to reset the vidmodes before crashing. Ryan C. Gordon 2012-09-28 14:12:45 -04:00
  • 2d182fc007 Theoretically fixed the position of the child window, though it's always ending up at the upper left corner for some reason. Sam Lantinga 2012-09-28 10:54:26 -07:00
  • 99fd9389e3 A few more tweaks for the legacy fullscreen support Sam Lantinga 2012-09-28 10:24:28 -07:00
  • e3d46eeb0a Fixed bug 1579 - Creating a texture with unsupported format may cause double-destruction Sam Lantinga 2012-09-28 04:09:06 -07:00
  • f839b17174 Fixed bug 1605 - SDL_DestroyWindow causes erroneous error message Sam Lantinga 2012-09-28 04:03:06 -07:00
  • 7793060752 Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue. Sam Lantinga 2012-09-28 03:54:39 -07:00
  • 22025f3ce7 Fixed bug 1584 - Improved glError checks in the opengl renderer Sam Lantinga 2012-09-28 03:49:27 -07:00
  • ed4f2e1ccf Made it clear that locking a streaming texture is a write-only operation. Sam Lantinga 2012-09-28 03:29:36 -07:00
  • da8a7087ee Result of autogen.sh run with previous commit Sam Lantinga 2012-09-28 03:22:26 -07:00
  • a9e8b3cc46 Fixed bug 1587 - "aclocal" fails to generate a sufficient "aclocal.m4" Sam Lantinga 2012-09-28 03:18:18 -07:00
  • f02003f0ba Fixed memory leak in an error case Sam Lantinga 2012-09-28 02:43:13 -07:00
  • 779e3bdeb6 Fixed bug 1496 - SDLView not created for a Cocoa window, resulting in missing right mouse clicks Sam Lantinga 2012-09-28 02:33:42 -07:00
  • 3a3d9d29f1 We don't always get the focus change events. Argh! Sam Lantinga 2012-09-28 02:15:44 -07:00
  • 5d0b5da1a9 Simplified the NetWM code a little bit, and it now operates on X11 Window Sam Lantinga 2012-09-28 01:51:51 -07:00
  • 1ce16e6581 Don't set the hidden netwm state, that would mean we don't want to be shown, which is bad. Sam Lantinga 2012-09-28 01:36:26 -07:00
  • 67b3106028 Pass the flags in, not the window pointer! Sam Lantinga 2012-09-28 01:15:48 -07:00
  • 44c3a8a110 Don't base our resizable state on what the window manager decided, instead we want to base it on the size hints which we set. Sam Lantinga 2012-09-28 01:11:30 -07:00
  • 96db7a048d Only map/unmap if the window isn't already in the correct state. Sam Lantinga 2012-09-28 00:57:47 -07:00
  • 8c3aa502b6 Fixed bug where desktop resolution was never restored if Xinerama was enabled. Sam Lantinga 2012-09-28 00:40:47 -07:00
  • 51987a4364 Compositing window managers can show and hide windows without ever affecting the mapped state. However they do send NetWM protocol messages to indicate this is happening. Also refactored the netwm state code so it's consistent between the places that use it. Sam Lantinga 2012-09-27 23:55:38 -07:00
  • c7486d96a9 Hopefully improved legacy fullscreen handling (it works now on my Ubuntu Unity system) Sam Lantinga 2012-09-27 17:17:33 -07:00
  • 3d54614be0 Removed unused variables Sam Lantinga 2012-09-27 14:38:56 -07:00
  • b3d60cfcbb Removed executable bit from source files Sam Lantinga 2012-09-27 14:35:28 -07:00
  • 6f3a45eb9c When we're reparented we'll get both unmapnotify and mapnotify. Eat both so the unmap notify doesn't confuse the normal event processing. Sam Lantinga 2012-09-27 13:52:57 -07:00
  • 56b4c24c87 Show events from all windows (for the legacy fullscreen case) Sam Lantinga 2012-09-27 13:52:07 -07:00
  • 9102852bbf Fixed fullscreen origin for multi-head displays Sam Lantinga 2012-09-27 13:23:34 -07:00
  • 769c1779ba Added debug define (commented out) Sam Lantinga 2012-09-27 13:22:34 -07:00
  • d47e15f90f Use the legacy fullscreen code if the window manager doesn't support the NetWM protocol. Sam Lantinga 2012-09-27 11:39:31 -07:00
  • 225faf6595 Turned the X11 mode extension environment variables into hints so they can be more easily set from applications. Sam Lantinga 2012-09-27 11:29:13 -07:00
  • 7754d8a1d1 Print a message if the window size was changed from the requested size. Sam Lantinga 2012-09-27 11:13:30 -07:00
  • 0740de8b7e Removed unused functions Sam Lantinga 2012-09-27 11:16:31 -07:00
  • c744c158f1 Don't block Android event loop until all relevant events reach the app. Gabriel Jacobo 2012-09-27 15:00:34 -03:00
  • fe75e595bc Fixed bug where Xinerama was treated as being available even if it wasn't. Also added additional logging for X11 video modes Sam Lantinga 2012-09-27 10:41:16 -07:00
  • 8a1ff92fa0 X11: Attempt to go fullscreen the way SDL 1.2 did it. Ryan C. Gordon 2012-09-27 03:36:13 -04:00
  • 2af67db009 On Compiz (etc?), _NET_WM_ACTION_FULLSCREEN needs the window to be resizable. Ryan C. Gordon 2012-09-27 00:53:37 -04:00
  • 0d1095004b Fixed bug 1559 - SDL does not provide scancodes for all keys available on Android. Sam Lantinga 2012-09-26 20:28:58 -07:00
  • 0748e0d1b2 Fixed bug 1573 - SDL does not support system clipboard on Android. Sam Lantinga 2012-09-26 20:14:37 -07:00
  • 8408ace068 Make SDL_atomic.h depend on the void pointer size determined at compile time rather than at configure time. As OS X supports lipo'ed versions of SDL for i386 and x86_64, a single set of headers that work for both architectures is desired. Gabriel Jacobo 2012-09-26 15:57:28 -03:00
  • 50a7a244e9 allocate *Hint structures per Xlib docs Edward Rudd 2012-09-26 14:08:46 -04:00
  • 85a548a2a2 The beeping stopped. And, other people may need to catch key events using their own delegate. Sam Lantinga 2012-09-25 20:58:23 -07:00
  • aafa6ec2c2 Merged libtool fixes Sam Lantinga 2012-09-25 20:49:43 -07:00
  • c545c19944 This isn't necessary anymore, with the latest autotools update. Sam Lantinga 2012-09-25 20:49:29 -07:00
  • 5e30e6ba30 The SDK path is no longer needed (and no longer correct) Sam Lantinga 2012-09-25 20:48:26 -07:00
  • d79c21ea69 NetBSD patch to use AUDIO_GETBUFINFO when available (contributed by jmcneill) Sam Lantinga 2012-09-25 20:47:38 -07:00
  • 7eeb0f5bf4 Fix Windows build, version.o linking. Gabriel Jacobo 2012-09-25 08:54:05 -03:00
  • 7bf6954e55 Fixed syntax error Sam Lantinga 2012-09-23 17:15:05 -07:00
  • ecbbb43ed9 Added UIInterfaceOrientationMask for building with older iOS SDKs Sam Lantinga 2012-09-23 17:01:58 -07:00