Skip to content
Permalink
Browse files

Date: Sat, 1 Jun 2002 17:56:45 -0500

From: Darrell Walisser <dwaliss1@purdue.edu>
Subject: mac patch

In this patch:

- yuv code
- links to QuickTime
- tabs -> 4 spaces
- mouse events fix
- SDLMain path parsing fix
- BUGS updates
- some miscellaneous docs/comments/code cleanup
  • Loading branch information
slouken committed Jun 1, 2002
1 parent 7e5c01a commit ee1f975a07ebfa8c2d81aaff1990353f21820d85
8 BUGS
@@ -72,26 +72,20 @@ MacOS X:

Joystick code is not extensively tested yet.

Window may not close when unsetting video mode and resetting.

Resizeable windows aren't implemented yet.

Depth switching for windowed mode isn't implemented yet.

Palette handling isn't implemented in windowed mode yet.

Command-line arguments Dialog is not implemented yet.
Command-line arguments dialog is not implemented yet.

Fullscreen drawing has some artifacts.

Fullscreen window covers *all* other windows - even force quit.

Fullscreen OpenGL for the software renderer is broken.

Some OpenGL parameters are not accounted for, for example color bits customization.

Getting OpenGL context parameters is not implemented.

Continuous mouse motion perhaps is not as smooth as it should be.

SDL_WM_GrabInput() is implemented, but it "freezes" the hardware
@@ -51,24 +51,25 @@ @implementation SDLMain
/* Set the working directory to the .app's parent directory */
- (void) setupWorkingDirectory:(BOOL)shouldChdir
{
char parentdir[MAXPATHLEN];
char *c;

strncpy ( parentdir, gArgv[0], sizeof(parentdir) );
c = (char*) parentdir;

while (*c != '\0') /* go to end */
c++;

while (*c != '/') /* back up to parent */
c--;

*c++ = '\0'; /* cut off last part (binary name) */

if (shouldChdir)
{
assert ( chdir (parentdir) == 0 ); /* chdir to the binary app's parent */
assert ( chdir ("../../../") == 0 ); /* chdir to the .app's parent */
char parentdir[MAXPATHLEN];
char *c;

strncpy ( parentdir, gArgv[0], sizeof(parentdir) );
c = (char*) parentdir;

while (*c != '\0') /* go to end */
c++;

while (*c != '/') /* back up to parent */
c--;

*c++ = '\0'; /* cut off last part (binary name) */

assert ( chdir (parentdir) == 0 ); /* chdir to the binary app's parent */
assert ( chdir ("../../../") == 0 ); /* chdir to the .app's parent */
}
}

0 comments on commit ee1f975

Please sign in to comment.