Skip to content

Commit

Permalink
Date: Sat, 1 Jun 2002 17:56:45 -0500
Browse files Browse the repository at this point in the history
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 ee1f975
Show file tree
Hide file tree
Showing 7 changed files with 1,215 additions and 912 deletions.
8 changes: 1 addition & 7 deletions BUGS
Expand Up @@ -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
Expand Down
31 changes: 16 additions & 15 deletions src/main/macosx/SDLMain.m
Expand Up @@ -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 */
}
}

Expand Down

0 comments on commit ee1f975

Please sign in to comment.