mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 07:10:15 +02:00
Fix stdlib usage
This commit is contained in:
committed by
Anonymous Maarten
parent
80da805688
commit
76f28ea120
@@ -300,7 +300,7 @@
|
||||
". [SDL] In performDragOperation, desiredType '%s', "
|
||||
"Submitting DropText as (%lu) '%s'\n",
|
||||
[[desiredType description] UTF8String],
|
||||
strlen(token), token);
|
||||
SDL_strlen(token), token);
|
||||
if (!SDL_SendDropText(sdlwindow, token)) {
|
||||
SDL_free(buffer);
|
||||
return NO;
|
||||
|
||||
@@ -255,7 +255,7 @@ bool HAIKU_GetDisplayModes(SDL_VideoDevice *_this, SDL_VideoDisplay *display)
|
||||
SDL_AddFullscreenDisplayMode(display, &mode);
|
||||
}
|
||||
}
|
||||
free(bmodes); // This should not be SDL_free()
|
||||
free(bmodes); // This should NOT be SDL_free()
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ bool HAIKU_SetDisplayMode(SDL_VideoDevice *_this, SDL_VideoDisplay *display, SDL
|
||||
return SDL_SetError("Bad video mode");
|
||||
}
|
||||
|
||||
free(bmode_list); // This should not be SDL_free()
|
||||
free(bmode_list); // This should NOT be SDL_free()
|
||||
|
||||
#ifdef SDL_VIDEO_OPENGL
|
||||
/* FIXME: Is there some way to reboot the OpenGL context? This doesn't
|
||||
|
||||
Reference in New Issue
Block a user