1. 07 Jun, 2009 2 commits
    • Sam Lantinga's avatar
      indent · b3556c8f
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403627
      b3556c8f
    • Sam Lantinga's avatar
      Hi, · f6408982
      Sam Lantinga authored
      I have prepared a set of patches to readd WindowsCE support to SDL 1.3.
      I've created a new GAPI/Rawframebuffer and a DirectDraw renderer.
      Both renderers are work in progress and there are several unimplemented
      cases. (Notably
      RenderLine/RenderPoint/RenderFill/QueryTexturePixels/UpdateTexture and
      texture blending )
      Nevertheless I am successfully using these renderers together with the
      SDL software renderer. (On most devices the SDL software renderer will
      be much faster as there are only badly optimized vendor drivers available)
      
      I send these patches now in this unpolished state because there seems to
      be some interest in win ce and someone has to start supporting SDL 1.3
      
      Now on to the patches:
      wince_events_window_fixes.patch
      fixes some wince incompatibilities and adds fullscreen support via
      SHFullScreen. NOTE: This patch shouldn't have any side effects on
      Windows, but I have NOT tested it on Windows, so please double-check.
      This patch doesn't dependent on the following ones.
      
      wince_renderers_system.patch
      This patch does all necessary modifications to the SDL system.
      - it adds the renderers to the configure system
      - it adds the renderers to win32video
      
      SDL_ceddrawrender.c
      SDL_ceddrawrender.h
      SDL_gapirender_c.h
      SDL_gapirender.c
      SDL_gapirender.h
      these files add the new render drivers and should be placed in
      src/video/win32
      
      Some notes to people who want to test this:
      - I have only compiled sdl with ming32ce, so the VisualC files are not
      up to date
      - As mingw32ce has no ddraw.h this file must be taken from the MS SDK
      and modified to work with gcc
      - I had to modify line 2611 in configure.in to
      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer
      -Wl,--image-base -Wl,0x10000"
      otherwise GetCPinfo wouldn't link. If someone knows whats causing this
      I'd be happy to hear about it.
      
      It would be great if these patches could make their way into SVN as this
      would make collaboration much much easier.
      
      I'm out of office for the next week and therefore will be unavailable
      via email.
      
      Regards
      Stefan
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403626
      f6408982
  2. 05 Jun, 2009 3 commits
  3. 04 Jun, 2009 1 commit
    • Bob Pendleton's avatar
      Added an ifdef so that if you · de866fce
      Bob Pendleton authored
      #define SDL_NO_COMPAT
      
      before you include SDL.h then SDL_compat.h will never be included in your code.
      This is useful for making sure that your code uses only SDL 1.3 features.
      It is also handy for finding things that are in SDL_compat.h that belong elsewhere.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403621
      de866fce
  4. 03 Jun, 2009 2 commits
    • Mike Gorchak's avatar
      Support for BGR565 pixel format has been added, mainly for OpenGL ES renderer.... · f2f1af27
      Mike Gorchak authored
      Support for BGR565 pixel format has been added, mainly for OpenGL ES renderer. OpenGL ES renderer now have new texture formats.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403619
      f2f1af27
    • Sam Lantinga's avatar
      Von: Thomas Zimmermann · e526b618
      Sam Lantinga authored
      Betreff: [SDL] [PATCH] Make static variables const
      Datum: Tue, 19 May 2009 19:45:37 +0200
      
      Hi,
      
      this is a set of simple changes which make some of SDL's internal static
      arrays constant. The purpose is to shrink the number of write-able
      static bytes and thus increase the number of memory pages shared between
      SDL applications.
      
      The patch set is against trunk@4513. Each of the attached patch files is
      specific to a sub-system. The set is completed by a second mail, because
      of the list's 40 KiB limit.
      
      The files readelf-r4513.txt and readelf-const-patch.txt where made by
      calling 'readelf -S libSDL.so'. They show the difference in ELF sections
      without and with the patch. Some numbers measured on my x86-64:
      
      Before
      
       [13] .rodata           PROGBITS         00000000000eaaa0  000eaaa0
            0000000000008170  0000000000000000   A       0     0     32
       [19] .data.rel.ro      PROGBITS         00000000003045e0  001045e0
            00000000000023d0  0000000000000000  WA       0     0     32
       [23] .data             PROGBITS         00000000003076e0  001076e0
            0000000000004988  0000000000000000  WA       0     0     32
      
      After
      
       [13] .rodata           PROGBITS         00000000000eaaa0  000eaaa0
            0000000000009a50  0000000000000000   A       0     0     32
       [19] .data.rel.ro      PROGBITS         0000000000306040  00106040
            0000000000002608  0000000000000000  WA       0     0     32
       [23] .data             PROGBITS         0000000000309360  00109360
            0000000000002e88  0000000000000000  WA       0     0     32
      
      The size of the write-able data section decreased considerably. Some
      entries became const-after-relocation, while most of its content went
      straight into the read-only data section.
      
      Best regards, Thomas
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403618
      e526b618
  5. 31 May, 2009 1 commit
  6. 28 May, 2009 1 commit
    • Sam Lantinga's avatar
      error message typo fix · 1decfd1a
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403614
      1decfd1a
  7. 23 May, 2009 1 commit
    • Sam Lantinga's avatar
      indent · 483f2ba3
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403608
      483f2ba3
  8. 15 May, 2009 1 commit
  9. 14 May, 2009 3 commits
  10. 07 May, 2009 3 commits
  11. 06 May, 2009 2 commits
  12. 05 May, 2009 2 commits
  13. 28 Apr, 2009 7 commits
  14. 24 Apr, 2009 1 commit
  15. 13 Apr, 2009 1 commit
  16. 03 Apr, 2009 3 commits
    • Sam Lantinga's avatar
      Fixed bug #721 · d7b72e29
      Sam Lantinga authored
      From  michalziulek@gmail.com   2009-03-28 07:43:34   (-) [reply]
      
      There is a bug in OpenGL 3.x context creation code.
      Function glXGetProcAddress is used directly where it should be:
      _this->gl_data->glXGetProcAddress. I have attached patch which fixes this on
      x11 and win32. Thanks.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403575
      d7b72e29
    • Sam Lantinga's avatar
      Fixed undefined references to joystick code · ce21b373
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403574
      ce21b373
    • Sam Lantinga's avatar
      Added SDL_GetColorKey() · 107632a2
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403573
      107632a2
  17. 28 Mar, 2009 1 commit
    • Sam Lantinga's avatar
      Oops · e62d2f48
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403569
      e62d2f48
  18. 24 Mar, 2009 3 commits
    • Sam Lantinga's avatar
      Added credits for OpenGL 3.0 support · 29be1b21
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403568
      29be1b21
    • Sam Lantinga's avatar
      Date: Sun, 22 Mar 2009 12:52:29 +0000 · ba096ad0
      Sam Lantinga authored
      From: Luke Benstead
      Subject: OpenGL 3.0 Context Creation
      
      I've attached a patch which implements OpenGL 3.x context creation on
      the latest SVN. I've added two options to SDL_GL_SetAttribute, these
      are SDL_GL_CONTEXT_MAJOR_VERSION and SDL_GL_CONTEXT_MINOR_VERSION.
      These default to 2 and 1 respectively. If the major version is less
      than 3 then the current context creation method is used, otherwise the
      appropriate new context creation function is called (depending on the
      platform).
      
      Sample code:
      
          if (SDL_Init(SDL_INIT_VIDEO) != 0) {
              printf("Unable to initialize SDL: %s\n", SDL_GetError());
              return 1;
          }
      
          SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); //Without these 2 lines, SDL will create a GL 2.x context
          SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
          SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
      
          SDL_Surface* screen = SDL_SetVideoMode( 640, 480, 16, SDL_OPENGL | SDL_FULLSCREEN );
      
      
      I've implemented context creation on both Win32 and X and run basic
      tests on both. This patch doesn't provide access to all the options
      allowed by the new context creation (e.g. shared contexts, forward
      compatible contexts) but they can be added pretty easily.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403567
      ba096ad0
    • Sam Lantinga's avatar
      Date: Mon, 23 Mar 2009 09:17:24 +0200 · fd618abe
      Sam Lantinga authored
      From: "Mike Gorchak"
      Subject: New QNX patches
      
      Please apply patch qnx4.diff, which is attached. What has been done:
      1)Added back OpenGL ES renderer for QNX target. Added few corrections to
      OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
      support textures under QNX, so I think some additional work must be done.
      2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
      required by OpenGL ES 1.1 specification.
      3) Added attribute clearing at the entrance of function
      SDL_GL_GetAttribure(). Added error checking into the function
      SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
      ES 1.0.
      4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
      glColor4f() functions, but 1.0 has glColor4f() only).
      5) Added error checking after obtaining attributes using
      SDL_GL_GetAttribute() function to the testgl2 and testgles.
      6) Small correction to testmultiaudio with printing errors.
      7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
      driver.
      
      Please remove ./src/audio/nto directory - it will not be used anymore.
      Please create ./src/audio/qsa directory and add content of the archive
      qsa.tar.gz into this directory. I rewrote some sound code, added support for
      multiple audio cards, enumeration, etc. Added initial support for capture.
      
      As far as I can understand SDL 1.3 is not supporting audio capture right now
      ? Sam, Am I right ? Or audio capture must be supported through the
      PlayDevice routine ?
      
      And last, please put file SDL_gf_opengles.c to  the ./src/video/qnxgf
      directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
      not supported by OpenGL ES 1.0.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
      fd618abe
  19. 23 Mar, 2009 2 commits
    • Sam Lantinga's avatar
      Date: Thu, 05 Feb 2009 17:27:54 +0100 · 0543b444
      Sam Lantinga authored
      From: Stefan Klug
      Subject: [SDL] SDL_SetVideoMode compatibility fix
      
      SDL_SetVideoMode(0,0,0,flags) used to be valid in SDL 1.2
      Attached is a patch to replicate this behaviour in SDL 1.3
      
      Cheers Stefan
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403565
      0543b444
    • Sam Lantinga's avatar
      Date: Thu, 05 Feb 2009 18:07:35 +0100 · d2d2e1c3
      Sam Lantinga authored
      From: Stefan Klug
      Subject: [SDL] SDL 1.3 WinCE backend
      
      as promised, I've started to work on the WinCE backend of SDL 1.3
      I've modified the win32 video backend and the gdi renderer, to work
      properly in WinCE.
      The results till now are great, but there is still some work to do.
      
      Attached are two patches with my changes.
      I would be happy if someone could review and propably commit them.
      
      The first one (configure.in.patch) should be straight forward without
      any side effects.
      
      The second one does the necessary changes to the win32 backend. I was
      really unhappy to start slicing this shiny new backend with
      #ifdef/#endif but I saw no other option.
      
      The most problematic issues are:
      - WinCe has no GetDIBits, so its practically impossible to fill a
      BITMAPINFO with correct values. I therefore removed the bmi member from
      the GDI_RenderData in SDL_gdirender.c to prevent usage of a not or not
      properly initialized  bmi.
      - In SDL_win32window.c I exchanged some ASCII function by their general
      counterparts, (In CE only the Unicode versions are available). I don't
      know if this has a negative effect when running in win32
      
      
      Cheers
      Stefan
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403564
      d2d2e1c3