1. 29 Jun, 2005 1 commit
    • Patrice Mandin's avatar
      Remove debug code · 04378970
      Patrice Mandin authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401081
      04378970
  2. 25 Jun, 2005 1 commit
  3. 24 Jun, 2005 1 commit
    • Ryan C. Gordon's avatar
      Patch from Antonio SJ Musumeci: · 3a608a44
      Ryan C. Gordon authored
      "
      This code with SDL-1.2.8 and CVS:
      
      #include <stdio.h>
      #include <stdlib.h>
      #include <SDL.h>
      
      int
      main(int argc, char** argv)
      {
         char alphabet[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         char buffer_file[27] = {0};
         char buffer_mem[27]  = {0};
         int rv_file;
         int rv_mem;
         FILE* file_ptr;
         SDL_RWops* rwop_file;
         SDL_RWops* rwop_mem;
      
         file_ptr = fopen("./blah", "w");
         fwrite(alphabet, 1, sizeof(alphabet), file_ptr);
         fclose(file_ptr);
      
         rwop_mem  = SDL_RWFromMem(alphabet, sizeof(alphabet));
         rwop_file = SDL_RWFromFile("./blah", "r");
         rv_mem  = SDL_RWread(rwop_mem , buffer_mem,  5, 6);
         rv_file = SDL_RWread(rwop_file, buffer_file, 5, 6);
         printf("From File: %d %s\n"
                "From Mem:  %d %s\n",
      	 rv_file,
      	 buffer_file,
      	 rv_mem,
      	 buffer_mem);
         printf("Seek end of File: %d\n"
      	 "Seek end of Mem:  %d\n",
      	 SDL_RWseek(rwop_file, 0, SEEK_END),
      	 SDL_RWseek(rwop_mem , 0, SEEK_END));
         SDL_RWclose(rwop_file);
         SDL_RWclose(rwop_mem);
      
         return 0;
      }
      
      
      Produces this output:
      
       From File: 5 ABCDEFGHIJKLMNOPQRSTUVWXYZ
       From Mem:  5 ABCDEFGHIJKLMNOPQRSTUVWXY
      Seek end of File: 26
      Seek end of Mem:  26
      "
      
      --ryan.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401079
      3a608a44
  4. 15 Jun, 2005 1 commit
  5. 12 Jun, 2005 1 commit
    • Patrice Mandin's avatar
      [PATCH] SDL_GetVideoMode() do not find the best video mode · f1867eeb
      Patrice Mandin authored
      The current GetVideoMode() function stops at the first mode which has any
      dimensions smaller than the one asked, and gives the previous in the list.
      
      If I ask 336x224 with this list:
      768x480 768x240 640x400 640x200 384x480 384x240 320x400 320x200
      SDL will give me 640x400, because 640x200 as height smaller than what I
      asked.
      
      However the best mode is the smaller which has both dimensions bigger
      than the one asked (384x240 in my example).
      
      This patch fixes this, plus it does not rely on a sorted video mode list.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401077
      f1867eeb
  6. 07 Jun, 2005 2 commits
  7. 06 Jun, 2005 6 commits
  8. 03 Jun, 2005 1 commit
  9. 02 Jun, 2005 2 commits
  10. 31 May, 2005 1 commit
  11. 20 May, 2005 2 commits
    • Patrice Mandin's avatar
      Used wrong offset in joystick packet · b9094f71
      Patrice Mandin authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401064
      b9094f71
    • Sam Lantinga's avatar
      Date: Tue, 22 Mar 2005 23:50:20 +0100 · 42339431
      Sam Lantinga authored
      From: Johannes Schmidt
      Subject: [PATCH] Re: [SDL] SDL 1.2.8 Prerelease
      
      On Saturday 18 December 2004 13:59, Stephane Marchesin wrote:
      > >#error "The kernel sources in /usr/src/linux are not yet configured."
      > >#error "Please run 'make cloneconfig && make dep' in /usr/src/linux/"
      > >#error "to get a kernel that is configured like the running kernel."
      > >#error "Alternatively, you can copy one of the config files"
      > >#error "arch/$ARCH/defconfig.* to .config, and run"
      > >#error "'make oldconfig && make dep' to configure the kernel"
      > >#error "for that configuration."
      > >-
      >
      > That's the Suse kernel sources...
      > I think the only way out is to add a test in ./configure
      
      Attached is a patch (it works for me[TM]) which adds a CheckLinuxVersion() to
      configure.in and a check for HAVE_LINUX_VERSION_H to
      src/cdrom/linux/SDL_syscdrom.c.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401063
      42339431
  12. 18 May, 2005 1 commit
  13. 16 May, 2005 5 commits
    • Sam Lantinga's avatar
      Support SDL_VIDEO_X11_NODIRECTCOLOR for OpenGL visuals · 78aeed71
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401061
      78aeed71
    • Sam Lantinga's avatar
      Date: Tue, 10 May 2005 22:15:25 +0100 · 53aa2122
      Sam Lantinga authored
      From: Peter Naulls
      Subject: RISC OS SDL patch
      
      Some of the RISC OS audio code is no longer used do to the switch to
      /dev/dsp, and can be removed as per the attached diff.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401060
      53aa2122
    • Sam Lantinga's avatar
      Eh, more correct. · 16bce3b7
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401059
      16bce3b7
    • Sam Lantinga's avatar
      Date: Mon, 02 May 2005 04:23:16 -0500 · 86cb73f3
      Sam Lantinga authored
      From: Jonathan Atkins
      Subject: Re: [PATCH] *CRITICAL* 8bit direct RGB palette not being created
      
      I think that SDL_AllocFormat should create the palette for all 8bit
      surfaces.  And when the RGBAmasks match the normal 3:3:2:0 we need to
      apply the old behavior.  If the mask doesn't match that, then we need
      to make the right palette assuming the masks are valid (I don't think
      we validate any masks for high color surfaces...so we wouldn't here)
      Then there's always a palette available for the 8bit surfaces.
      This restores the normal behavior and allows for masks to create
      palettes automatically for odd masks even, which would be a neato
      thing to have in there, as SDL never did this before.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401058
      86cb73f3
    • Sam Lantinga's avatar
      *** empty log message *** · 00bc47ce
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401057
      00bc47ce
  14. 08 May, 2005 1 commit
  15. 05 May, 2005 1 commit
  16. 20 Apr, 2005 1 commit
  17. 17 Apr, 2005 7 commits
  18. 01 Apr, 2005 1 commit
  19. 30 Mar, 2005 1 commit
  20. 07 Mar, 2005 2 commits
  21. 02 Mar, 2005 1 commit