Mercurial > sdl-ios-xcode
annotate autogen.sh @ 1120:8e1fde455471
Patch by me to fix crash described below.
--ryan.
To: sdl@libsdl.org
From: Rainer Deyke <rainerd@eldwood.com>
Date: Tue, 16 Aug 2005 01:08:18 -0600
Subject: [SDL] Bug report: SDL_CreateRGBSurface with SDL_HWSURFACE crashes
If SDL is in full-screen mode with a hardware video surface on OS X,
SDL_CreateRGBSurface with SDL_HWSURFACE crashes. The crash occurs on
line 109 of SDL_Surface.c. This was tested on OS X 10.3.9 with both SDL
1.2.8 and the latest CVS. Here is a small C++ program that demonstrates
the problem:
#include "SDL.h"
#include <stdio.h>
namespace {
void wait_for_key()
{
SDL_Event e;
printf("%d\n", SDL_GetAppState());
while (SDL_WaitEvent(&e)) {
if (e.type == SDL_KEYDOWN || e.type == SDL_QUIT) return;
}
}
}
int main(int, char *[])
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Surface *screen
= SDL_SetVideoMode(640, 480, 32, SDL_FULLSCREEN | SDL_HWSURFACE);
SDL_Surface *s = SDL_CreateRGBSurface(SDL_HWSURFACE, 640, 480, 32,
screen->format->Rmask, screen->format->Gmask,
screen->format->Bmask, screen->format->Amask);
wait_for_key();
if (s) SDL_FreeSurface(s);
SDL_Quit();
printf("Success!\n");
return 0;
}
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 18 Aug 2005 06:46:32 +0000 |
parents | 9430ba1a19f3 |
children | c7376efecdb5 |
rev | line source |
---|---|
0 | 1 #!/bin/sh |
2 # | |
3 echo "Generating build information using aclocal, automake and autoconf" | |
4 echo "This may take a while ..." | |
5 | |
6 # Touch the timestamps on all the files since CVS messes them up | |
7 directory=`dirname $0` | |
8 touch $directory/configure.in | |
9 | |
10 # Regenerate configuration files | |
11 aclocal | |
342 | 12 automake --foreign --include-deps --add-missing --copy |
0 | 13 autoconf |
343
9430ba1a19f3
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
342
diff
changeset
|
14 (cd test; aclocal; automake --foreign --include-deps --add-missing --copy; autoconf) |
0 | 15 |
16 # Run configure for this platform | |
17 #./configure $* | |
18 echo "Now you are ready to run ./configure" |