Fixed up some compile warnings and errors on x86-64 Haiku.

This commit is contained in:
Ryan C. Gordon 2017-08-09 00:56:05 -04:00
parent 64c2957735
commit d5215d9df9
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,6 @@ int32 BE_DrawThread(void *data) {
/* Blit each clipping rectangle */ /* Blit each clipping rectangle */
bscreen.WaitForRetrace(); bscreen.WaitForRetrace();
for(i = 0; i < numClips; ++i) { for(i = 0; i < numClips; ++i) {
clipping_rect rc = clips[i];
/* Get addresses of the start of each clipping rectangle */ /* Get addresses of the start of each clipping rectangle */
int32 width = clips[i].right - clips[i].left + 1; int32 width = clips[i].right - clips[i].left + 1;
int32 height = clips[i].bottom - clips[i].top + 1; int32 height = clips[i].bottom - clips[i].top + 1;
@ -200,6 +199,7 @@ void BE_DestroyWindowFramebuffer(_THIS, SDL_Window * window) {
* The specific issues have since become rare enough that they may have been * The specific issues have since become rare enough that they may have been
* solved, but I doubt it- they were pretty sporadic before now. * solved, but I doubt it- they were pretty sporadic before now.
*/ */
#ifndef DRAWTHREAD
static int32 BE_UpdateOnce(SDL_Window *window) { static int32 BE_UpdateOnce(SDL_Window *window) {
SDL_BWin *bwin = _ToBeWin(window); SDL_BWin *bwin = _ToBeWin(window);
BScreen bscreen; BScreen bscreen;
@ -225,7 +225,6 @@ static int32 BE_UpdateOnce(SDL_Window *window) {
/* Blit each clipping rectangle */ /* Blit each clipping rectangle */
bscreen.WaitForRetrace(); bscreen.WaitForRetrace();
for(i = 0; i < numClips; ++i) { for(i = 0; i < numClips; ++i) {
clipping_rect rc = clips[i];
/* Get addresses of the start of each clipping rectangle */ /* Get addresses of the start of each clipping rectangle */
int32 width = clips[i].right - clips[i].left + 1; int32 width = clips[i].right - clips[i].left + 1;
int32 height = clips[i].bottom - clips[i].top + 1; int32 height = clips[i].bottom - clips[i].top + 1;
@ -247,6 +246,7 @@ static int32 BE_UpdateOnce(SDL_Window *window) {
} }
return 0; return 0;
} }
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -43,7 +43,7 @@ extern "C" {
#if WRAP_BMODE #if WRAP_BMODE
/* This wrapper is here so that the driverdata can be freed without freeing /* This wrapper is here so that the driverdata can be freed without freeing
the display_mode structure */ the display_mode structure */
typedef struct SDL_DisplayModeData { struct SDL_DisplayModeData {
display_mode *bmode; display_mode *bmode;
}; };
#endif #endif