Skip to content

Commit

Permalink
Fixes for new SDL embedded libc stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Feb 8, 2006
1 parent 46f9d7e commit 609bb6b
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/audio/mint/SDL_mintaudio.c
Expand Up @@ -26,7 +26,6 @@
Patrice Mandin
*/

#include <string.h>
#include <unistd.h>

#include <mint/osbind.h>
Expand All @@ -35,6 +34,7 @@

#include "SDL_types.h"
#include "SDL_audio.h"
#include "SDL_string.h"

#include "SDL_mintaudio.h"
#include "SDL_mintaudio_stfa.h"
Expand Down
1 change: 1 addition & 0 deletions src/cdrom/mint/SDL_syscdrom.c
Expand Up @@ -33,6 +33,7 @@

#include "SDL_error.h"
#include "SDL_cdrom.h"
#include "SDL_string.h"
#include "SDL_syscdrom.h"

/* Some ioctl() errno values which occur when the tray is empty */
Expand Down
1 change: 1 addition & 0 deletions src/joystick/mint/SDL_sysjoystick.c
Expand Up @@ -34,6 +34,7 @@
#include "SDL_types.h"
#include "SDL_error.h"
#include "SDL_joystick.h"
#include "SDL_events.h"
#include "SDL_sysjoystick.h"
#include "SDL_joystick_c.h"

Expand Down
3 changes: 1 addition & 2 deletions src/video/ataricommon/SDL_biosevents.c
Expand Up @@ -26,13 +26,12 @@
* Patrice Mandin
*/

#include <string.h>

/* Mint includes */
#include <mint/osbind.h>
#include <mint/cookie.h>

#include "SDL.h"
#include "SDL_string.h"
#include "SDL_sysevents.h"
#include "SDL_events_c.h"

Expand Down
3 changes: 1 addition & 2 deletions src/video/ataricommon/SDL_gemdosevents.c
Expand Up @@ -26,13 +26,12 @@
* Patrice Mandin
*/

#include <string.h>

/* Mint includes */
#include <mint/osbind.h>
#include <mint/cookie.h>

#include "SDL.h"
#include "SDL_string.h"
#include "SDL_sysevents.h"
#include "SDL_events_c.h"

Expand Down
3 changes: 1 addition & 2 deletions src/video/ataricommon/SDL_ikbdevents.c
Expand Up @@ -26,12 +26,11 @@
* Patrice Mandin
*/

#include <string.h>

/* Mint includes */
#include <mint/osbind.h>

#include "SDL.h"
#include "SDL_string.h"
#include "SDL_sysevents.h"
#include "SDL_events_c.h"

Expand Down
3 changes: 1 addition & 2 deletions src/video/gem/SDL_gemevents.c
Expand Up @@ -29,11 +29,10 @@
* Olivier Landemarre, Johan Klockars, Xavier Joubert, Claude Attard
*/

#include <string.h>

#include <gem.h>

#include "SDL.h"
#include "SDL_string.h"
#include "SDL_sysevents.h"
#include "SDL_events_c.h"
#include "SDL_gemvideo.h"
Expand Down
4 changes: 2 additions & 2 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -672,7 +672,7 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
if (XBIOS_centscreen) {
SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth);
} else {
Vsetmode(new_video_mode->number);
VsetMode(new_video_mode->number);
}
#endif
/* Set hardware palette to black in True Colour */
Expand Down Expand Up @@ -884,7 +884,7 @@ static void XBIOS_VideoQuit(_THIS)
if (XBIOS_centscreen) {
SDL_XBIOS_CentscreenRestore(this, XBIOS_oldvmode);
} else {
Vsetmode(XBIOS_oldvmode);
VsetMode(XBIOS_oldvmode);
}
if (XBIOS_oldnumcol) {
VsetRGB(0, XBIOS_oldnumcol, XBIOS_oldpalette);
Expand Down

0 comments on commit 609bb6b

Please sign in to comment.