Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Updated testeyes.c. It now shows some kind of gibberish Missingno-typ…
Browse files Browse the repository at this point in the history
…e picture somewhere on the screen and, possibly, hangs the window system. On the upside, the Missingno is definitely a non-rectangular window.
  • Loading branch information
Eli Gottlieb committed Jul 18, 2010
1 parent 6ccb3d7 commit a2ad75b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testeyes.c
Expand Up @@ -130,7 +130,7 @@ int main(int argc,char** argv) {
exit(-1);
}

SDL_Window *window = SDL_CreateShapedWindow("Big Brother is watching you.",eyes_x_hot,eyes_y_hot,eyes_width,eyes_height,SDL_WINDOW_RESIZABLE);
SDL_Window *window = SDL_CreateShapedWindow("Big Brother is watching you.",eyes_x_hot,eyes_y_hot,eyes_width,eyes_height,SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN);
if(window == NULL) {
SDL_VideoQuit();
printf("Could not create shaped window for eyes.\n");
Expand Down Expand Up @@ -169,7 +169,7 @@ int main(int argc,char** argv) {
}
if(SDL_MUSTLOCK(eyes))
SDL_UnlockSurface(eyes);
SDL_Texture *eyes_texture = SDL_CreateTextureFromSurface(SDL_PIXELFORMAT_ARGB4444,eyes);
SDL_Texture *eyes_texture = SDL_CreateTextureFromSurface(0,eyes);
if(eyes_texture == NULL) {
SDL_FreeSurface(eyes);
SDL_DestroyRenderer(window);
Expand Down

0 comments on commit a2ad75b

Please sign in to comment.