Yay, found the annoying screen-blinking code and killed it!!!!!
This commit is contained in:
parent
38e34988c4
commit
0770e3b879
1 changed files with 19 additions and 19 deletions
38
src/x48.c
38
src/x48.c
|
@ -2286,31 +2286,31 @@ void SDLUIFeedback( void ) {
|
||||||
// This function should give some UI feedback to indicate that a key was
|
// This function should give some UI feedback to indicate that a key was
|
||||||
// pressed E.g. by beeping, vibrating or flashing something
|
// pressed E.g. by beeping, vibrating or flashing something
|
||||||
|
|
||||||
SDL_Surface *surf1, *surf2;
|
/* SDL_Surface *surf1, *surf2; */
|
||||||
surf1 =
|
/* surf1 = */
|
||||||
SDL_CreateRGBSurface( SDL_SWSURFACE, sdlwindow->w, sdlwindow->h, 32,
|
/* SDL_CreateRGBSurface( SDL_SWSURFACE, sdlwindow->w, sdlwindow->h, 32, */
|
||||||
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 );
|
/* 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ); */
|
||||||
surf2 =
|
/* surf2 = */
|
||||||
SDL_CreateRGBSurface( SDL_SWSURFACE, sdlwindow->w, sdlwindow->h, 32,
|
/* SDL_CreateRGBSurface( SDL_SWSURFACE, sdlwindow->w, sdlwindow->h, 32, */
|
||||||
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 );
|
/* 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ); */
|
||||||
|
|
||||||
// Copy screen
|
/* // Copy screen */
|
||||||
SDL_BlitSurface( sdlwindow, 0, surf1, 0 );
|
/* SDL_BlitSurface( sdlwindow, 0, surf1, 0 ); */
|
||||||
|
|
||||||
// Overlay something
|
/* // Overlay something */
|
||||||
SDL_FillRect( surf2, 0, 0x80000000 );
|
/* SDL_FillRect( surf2, 0, 0x80000000 ); */
|
||||||
SDL_BlitSurface( surf2, 0, sdlwindow, 0 );
|
/* SDL_BlitSurface( surf2, 0, sdlwindow, 0 ); */
|
||||||
SDL_UpdateRect( sdlwindow, 0, 0, 0, 0 );
|
/* SDL_UpdateRect( sdlwindow, 0, 0, 0, 0 ); */
|
||||||
|
|
||||||
SDL_Delay( 20 );
|
/* SDL_Delay( 20 ); */
|
||||||
|
|
||||||
// Restore screen
|
/* // Restore screen */
|
||||||
SDL_BlitSurface( surf1, 0, sdlwindow, 0 );
|
/* SDL_BlitSurface( surf1, 0, sdlwindow, 0 ); */
|
||||||
|
|
||||||
SDL_UpdateRect( sdlwindow, 0, 0, 0, 0 );
|
/* SDL_UpdateRect( sdlwindow, 0, 0, 0, 0 ); */
|
||||||
|
|
||||||
SDL_FreeSurface( surf1 );
|
/* SDL_FreeSurface( surf1 ); */
|
||||||
SDL_FreeSurface( surf2 );
|
/* SDL_FreeSurface( surf2 ); */
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple 'show window' function
|
// Simple 'show window' function
|
||||||
|
|
Loading…
Reference in a new issue