Commit Graph

  • 973e6e31d8 Fixed to use the correct display adapter Sam Lantinga 2009-12-06 06:21:39 +00:00
  • cbe0bbeb02 Fixed compiler warnings Sam Lantinga 2009-12-05 22:13:36 +00:00
  • 08dd462d5a Fixed compilation on Mac OS X 10.4 Sam Lantinga 2009-12-05 19:57:49 +00:00
  • 489e0472a0 Allow overriding the number of build jobs Sam Lantinga 2009-12-05 19:46:24 +00:00
  • a90e5b78ce Made the window flag comments more consistent Sam Lantinga 2009-12-05 05:13:17 +00:00
  • 428aa51c43 Added related functions Sam Lantinga 2009-12-05 04:39:59 +00:00
  • ab85a49998 Don't add any renderers if you can't add any displays Sam Lantinga 2009-12-04 09:01:48 +00:00
  • 624f566965 Fixed calls to SDL_AddRenderDriver() Sam Lantinga 2009-12-04 08:45:08 +00:00
  • f11bc297a2 Fixed compiling the D3D renderer Sam Lantinga 2009-12-04 08:26:32 +00:00
  • 1b9db6b1d5 Added support for SDL 1.2 environment variables: SDL_VIDEO_FULLSCREEN_DISPLAY, SDL_VIDEO_FULLSCREEN_HEAD Sam Lantinga 2009-12-03 08:43:12 +00:00
  • 6d60a7e907 Fixed mouse events for fullscreen windows on Mac OS X Sam Lantinga 2009-12-03 08:33:39 +00:00
  • 2c7165c6f4 Restore the video mode after shutting down the renderer, which fixes an error deleting the OpenGL context on Mac OS X. Sam Lantinga 2009-12-03 05:05:26 +00:00
  • f6828e88f9 Missing pop over a jump Sam Lantinga 2009-12-03 04:33:05 +00:00
  • 262da78936 Added Ctrl-Z common key binding Sam Lantinga 2009-12-02 07:56:09 +00:00
  • 17424210d2 Restore the desktop mode when requested Sam Lantinga 2009-12-02 07:55:23 +00:00
  • efacf93c19 If we're fullscreen on a single-head system and lose focus, minimize Sam Lantinga 2009-12-02 07:42:10 +00:00
  • 932374c12d On multi-display systems it's perfectly reasonable to have focus on a window on another monitor while the application is fullscreen. Sam Lantinga 2009-12-02 07:38:28 +00:00
  • 147d40ba98 Don't need to hide the menu bar if we're not on the main display Sam Lantinga 2009-12-02 07:28:58 +00:00
  • 7b253b6d72 Changed so that it's obvious that the two code blocks are related. Sam Lantinga 2009-12-02 07:25:06 +00:00
  • 98d4ce80cb Fixed mouse coordinates for fullscreen mode Sam Lantinga 2009-12-02 06:10:18 +00:00
  • 8d573748a7 The window positions are relative to the origin of the windowing system (upper left of the primary display). Fixed the mouse positions for windowed mouse movement. Sam Lantinga 2009-12-01 12:08:34 +00:00
  • 3a9270299d Added support for placing windows on different displays Sam Lantinga 2009-12-01 11:50:00 +00:00
  • 339da23b8c Ensure that the main display is picked up first Sam Lantinga 2009-12-01 10:41:58 +00:00
  • 67759dc02c Allow mirrored displays, but only the primary display in a mirrored set. Sam Lantinga 2009-12-01 10:34:01 +00:00
  • 4fb5822326 Explicitly clear fullscreen status rather than relying on the window focus behavior. Sam Lantinga 2009-12-01 09:04:28 +00:00
  • fcd49aba49 Whenever a window becomes fullscreen, shown, unminimized, and has input focus it will change the display to the corresponding fullscreen video mode. If it loses any of those properties the desktop mode will be restored. Sam Lantinga 2009-12-01 08:56:12 +00:00
  • 2ce40757c1 Removed a little redundancy in the naming Sam Lantinga 2009-12-01 06:15:10 +00:00
  • 8adb9fc3cc Work in progress on multi-display support: * Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one. * The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows. Sam Lantinga 2009-12-01 05:57:15 +00:00
  • 27e8049669 Reduced the push/pop sequence to a single pair, and ported this fix over to the other architectures. Sam Lantinga 2009-11-30 21:04:25 +00:00
  • e989a1a23e Fixed crash - need to save and restore rbx around cpuid, since the compiler may be assuming the stack pointer isn't being modified when filling in %0. Sam Lantinga 2009-11-30 19:52:34 +00:00
  • e967be32b1 Added support for 32-bit BMP files with an alpha channel Sam Lantinga 2009-11-30 17:57:12 +00:00
  • 1636b263b6 Joe 2009-11-23 21:31:10 PST Sam Lantinga 2009-11-27 19:29:27 +00:00
  • ef2e845497 Adam Strzelecki to SDL Sam Lantinga 2009-11-27 03:11:26 +00:00
  • c0587b4d69 Adam Strzelecki to SDL Sam Lantinga 2009-11-26 05:55:57 +00:00
  • eb0a552878 SDL_CreateWindowFrom() is actually going to be supported. :) Sam Lantinga 2009-11-25 07:42:23 +00:00
  • 3d2358c109 Clarified the windowID parameter Sam Lantinga 2009-11-25 06:24:15 +00:00
  • 3f0a66d3ef Add error messages for failure cases Sam Lantinga 2009-11-25 06:00:00 +00:00
  • f0f7a43ea2 Added the automated test to the Visual Studio 2008 project Sam Lantinga 2009-11-25 04:41:09 +00:00
  • b74b046318 Override renderer for OpenGL window, only in case if OpenGL or OpenGL ES renderers are enabled. Mike Gorchak 2009-11-24 19:28:27 +00:00
  • 9f88d7348e Fixed bug #771 Sam Lantinga 2009-11-24 16:43:18 +00:00
  • 9943aa0b1b Eric Wing to Sam, hfutrell Sam Lantinga 2009-11-24 08:12:32 +00:00
  • 07d9b53f03 Fixed bug #891 Sam Lantinga 2009-11-24 04:59:50 +00:00
  • b7dc66d719 Mason Wheeler to sdl Sam Lantinga 2009-11-24 04:48:12 +00:00
  • 1b236a4901 Set the error so someone can get more information Sam Lantinga 2009-11-22 20:53:53 +00:00
  • 2634a34422 Made the comment actually mean something. :) Sam Lantinga 2009-11-22 20:00:00 +00:00
  • c0f5e8a979 More fixes to compile under Visual C++ Sam Lantinga 2009-11-22 07:00:26 +00:00
  • 411ee2e374 Fixed include paths for Visual C++ Sam Lantinga 2009-11-22 06:42:58 +00:00
  • 8c5da01bc8 The Direct3D Read/Write pixels interface is in progress. Sam Lantinga 2009-11-22 06:37:43 +00:00
  • 9fd8542b46 Whoops, actually set the SDL error, don't just print the error. Sam Lantinga 2009-11-22 06:34:45 +00:00
  • f54a8cc44d Added support for QNX default font. Backspace and Return keys now handled. Mike Gorchak 2009-11-21 08:42:42 +00:00
  • 7125fdbe63 We want to be strict on software renderer tests and opaque tests, but give a decent margin for blending inaccuracy for the blended tests. Sam Lantinga 2009-11-21 07:59:19 +00:00
  • fc6a229f72 Increased tolerance a little bit more for multiple blending passes accumulating error. Sam Lantinga 2009-11-21 07:46:12 +00:00
  • 24d9e6a497 Added comment for pixel-perfect line workaround. Sam Lantinga 2009-11-21 07:26:52 +00:00
  • dd6317ef08 Of COURSE that trick wouldn't work on all renderers. Fall back to something for now, hopefully figure out a better way to do this later. Sam Lantinga 2009-11-21 07:22:59 +00:00
  • cda15a93c7 This is terrible, but the OpenGL standard says that lines are half open, which means that one endpoint is not covered so adjoining lines don't overlap. It also doesn't define which end is open, and indeed Mac OS X and Linux differ. Mac OS X seems to leave the second endpoint open, but Linux uses the right-most endpoint for x major lines and the bottom-most endpoint for y major lines. Sam Lantinga 2009-11-21 07:14:21 +00:00
  • 4cbe158f13 Fixed the coordinates for pixel coverage in blits Sam Lantinga 2009-11-21 06:34:43 +00:00
  • 7863b8a31b Use 45 degree lines for the diagonal test to avoid aliasing errors in line drawing. Sam Lantinga 2009-11-21 06:28:25 +00:00
  • d0c931c89a It's not the last pixel, it's the rightmost pixel, or if they're both the same x coordinate, the bottommost pixel. Sam Lantinga 2009-11-21 06:19:34 +00:00
  • f351b80476 RenderReadPixels and RenderWritePixels functions work with back buffer now and all asynchronous operations are flushed before reading or writing to backbuffer. Thanks Sam for clarification of this. Mike Gorchak 2009-11-21 06:17:50 +00:00
  • 58effb88d3 My first OpenGL shader! Momma will be so proud! Sam Lantinga 2009-11-21 05:29:31 +00:00
  • 3808553966 pixels don't need to be dynamically allocated Added a dump_screen() function to assist with test failure diagnosis Sam Lantinga 2009-11-21 05:25:08 +00:00
  • 32188b63d3 SDL_RenderReadPixels() needs to flush asynchronous operations before it reads. The semantics are that it reads the back buffer, and those pixels may not be available once SDL_RenderPresent() has happened. Sam Lantinga 2009-11-21 05:05:19 +00:00
  • 744dfa75a8 Support for UTF-8 text input has been added. Mike Gorchak 2009-11-20 14:42:40 +00:00
  • b6c6b41bb5 1. SDL_RenderPresent() call has been added after each test to be sure, that all graphics output is flushed in case if it was asynchronous. 2. After each renderer test window recreation has been added. Mike Gorchak 2009-11-20 07:11:29 +00:00
  • e7e2a01f50 Output last SDL error in case of test was failed. Mike Gorchak 2009-11-20 07:08:28 +00:00
  • 516d648ebd RenderReadPixels and RenderWritePixels now work properly. Mike Gorchak 2009-11-20 07:07:41 +00:00
  • ada6df0ab1 Deinitialization fixes, in case if QNXGF driver is not initialized properly. Mike Gorchak 2009-11-20 07:06:50 +00:00
  • 8a2f3c4aeb Added support for generic getopt() function instead of getopt_long(). Because not all platforms have getopt_long(). Mike Gorchak 2009-11-19 09:07:09 +00:00
  • 00648d42b4 Support for RendererReadPixels and RendererWritePixels has been added to photon renderer. Mike Gorchak 2009-11-19 08:44:07 +00:00
  • e665ed1ee6 Mike Gorchak to Sam Sam Lantinga 2009-11-19 08:02:00 +00:00
  • 287d2b84fc Found a way to implement mask semantics in OpenGL Sam Lantinga 2009-11-19 05:33:41 +00:00
  • 98198245bc Allow some variation in the pixel values to account for blending accuracy differences. Sam Lantinga 2009-11-19 05:06:01 +00:00
  • abb42ffd01 Include the endpoint in the line we're drawing Sam Lantinga 2009-11-19 04:59:19 +00:00
  • 36c5366455 Adjust the vertices to be over the texel center. Sam Lantinga 2009-11-19 04:33:35 +00:00
  • dce6c3f274 Fixed a bunch of bugs in the blit blend mode tests Sam Lantinga 2009-11-18 09:39:32 +00:00
  • e671076c62 Use SDL's string and memory functions instead of stdlib Sam Lantinga 2009-11-18 09:28:35 +00:00
  • 3e539ff849 Implemented SDL_RenderReadPixels()/SDL_RenderWritePixels() for the dummy renderer. This is helpful to validate the automated test suite, since this renderer is super simple and should always pass tests. Sam Lantinga 2009-11-18 09:20:01 +00:00
  • 9cc7fc361e Don't add the OpenGL renderers for drivers that don't support OpenGL Sam Lantinga 2009-11-18 09:17:29 +00:00
  • 8259a10e12 Fixes for the automated rendering test Sam Lantinga 2009-11-18 09:07:13 +00:00
  • 46db19c1fd If we explicitly request a driver, try to initialize it. Sam Lantinga 2009-11-18 08:54:13 +00:00
  • 9cc81118d2 Fixed GL_RenderReadPixels() - thanks Ryan! Sam Lantinga 2009-11-18 08:07:37 +00:00
  • a9553c1c3d First pass (untested) at RenderWritePixels() Sam Lantinga 2009-11-18 07:35:00 +00:00
  • f07fad9ec7 Refactored to use render_loadTestFace() Sam Lantinga 2009-11-18 07:34:05 +00:00
  • cacae661e6 Fixed endianness of the face image surface Sam Lantinga 2009-11-18 07:22:22 +00:00
  • ae3824a9bf Trying to figure out why the OpenGL tests are failing... Sam Lantinga 2009-11-18 06:15:44 +00:00
  • 754e60b870 Compare against the correct image Sam Lantinga 2009-11-18 06:15:21 +00:00
  • c14ffddbcc Debug info to help track down render test failures Sam Lantinga 2009-11-17 06:51:14 +00:00
  • e306484919 Added missing return values Sam Lantinga 2009-11-17 06:50:29 +00:00
  • 6820ff5982 Fixed some bugs in the automated test suite, revealed by working SDL_RenderReadPixels() Sam Lantinga 2009-11-17 05:17:11 +00:00
  • cd1a4a74e5 Scott to slouken Sam Lantinga 2009-11-17 04:53:15 +00:00
  • e024bcf596 Thank you automated tests (and bobbens!), fixed alpha blending for accuracy Sam Lantinga 2009-11-16 09:47:34 +00:00
  • 0b1a37f8ba Fixed memory corruption in SW_RenderReadPixels() Sam Lantinga 2009-11-16 07:39:08 +00:00
  • 7a40c23469 You can specify the format for pixel data in SDL_RenderReadPixels() and SDL_RenderWritePixels() This code still doesn't quite work yet. :) Sam Lantinga 2009-11-16 07:13:07 +00:00
  • c12a32c64b Added a utility function to convert blocks of pixels Sam Lantinga 2009-11-15 09:21:46 +00:00
  • 08efca1a63 Hmm, this isn't going to work, is it? Sam Lantinga 2009-11-15 08:01:34 +00:00
  • 1e8b087237 Work in progress: SDL_RenderReadPixels() should be implemented soon. Sam Lantinga 2009-11-15 08:01:07 +00:00
  • 06a7514a17 Work in progress on OpenGL ReadPixels/WritePixels interface Sam Lantinga 2009-11-15 04:58:03 +00:00
  • b6a95db8fa Updated for the new pixel format structure Sam Lantinga 2009-11-11 06:34:33 +00:00
  • 955c767ade The docs directory doesn't exist anymore Sam Lantinga 2009-11-11 06:23:19 +00:00
  • b66aacd5f4 Fixed gcc warning Sam Lantinga 2009-11-09 15:12:31 +00:00