Fri, 24 Jun 2005 12:48:38 +0000Patch from Antonio SJ Musumeci:
Ryan C. Gordon <icculus@icculus.org> [Fri, 24 Jun 2005 12:48:38 +0000] rev 1078
Patch from Antonio SJ Musumeci:

"
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.

Wed, 15 Jun 2005 23:41:57 +0000The Darwin/MacOSX joystick code is largely copied from the HID Utilities
Ryan C. Gordon <icculus@icculus.org> [Wed, 15 Jun 2005 23:41:57 +0000] rev 1077
The Darwin/MacOSX joystick code is largely copied from the HID Utilities
package...make the symbols defined by HID Utilities static inside SDL so that
an app can link against their own copy of this package without symbol clash.

Sun, 12 Jun 2005 16:12:55 +0000[PATCH] SDL_GetVideoMode() do not find the best video mode
Patrice Mandin <patmandin@gmail.com> [Sun, 12 Jun 2005 16:12:55 +0000] rev 1076
[PATCH] SDL_GetVideoMode() do not find the best video mode

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.

Tue, 07 Jun 2005 13:30:06 +0000Use wrong line length of menubar save buffer
Patrice Mandin <patmandin@gmail.com> [Tue, 07 Jun 2005 13:30:06 +0000] rev 1075
Use wrong line length of menubar save buffer

Tue, 07 Jun 2005 11:52:46 +0000Save/restore system palette when application topped/untopped
Patrice Mandin <patmandin@gmail.com> [Tue, 07 Jun 2005 11:52:46 +0000] rev 1074
Save/restore system palette when application topped/untopped

Mon, 06 Jun 2005 21:50:26 +0000Another forgotten variable declaration
Patrice Mandin <patmandin@gmail.com> [Mon, 06 Jun 2005 21:50:26 +0000] rev 1073
Another forgotten variable declaration

Mon, 06 Jun 2005 16:54:03 +0000Use correct system function to free memory
Patrice Mandin <patmandin@gmail.com> [Mon, 06 Jun 2005 16:54:03 +0000] rev 1072
Use correct system function to free memory

Mon, 06 Jun 2005 16:36:18 +0000SDL will center surface on screen for us
Patrice Mandin <patmandin@gmail.com> [Mon, 06 Jun 2005 16:36:18 +0000] rev 1071
SDL will center surface on screen for us

Mon, 06 Jun 2005 10:45:53 +0000Forgot variable declaration
Patrice Mandin <patmandin@gmail.com> [Mon, 06 Jun 2005 10:45:53 +0000] rev 1070
Forgot variable declaration

Mon, 06 Jun 2005 10:27:22 +0000Restore and save menu bar when entering and exiting fullscreen mode
Patrice Mandin <patmandin@gmail.com> [Mon, 06 Jun 2005 10:27:22 +0000] rev 1069
Restore and save menu bar when entering and exiting fullscreen mode