Updated testeyes.c. It now shows some kind of gibberish Missingno-type picture somewhere on the screen and, possibly, hangs the window system. On the upside, the Missingno is definitely a non-rectangular window.
authorEli Gottlieb <eligottlieb@gmail.com>
Sun, 18 Jul 2010 15:15:05 -0400
changeset 4798 980614a70cfc
parent 4797 2a71f02323c7
child 4799 a0e096916474
Updated testeyes.c. It now shows some kind of gibberish Missingno-type picture somewhere on the screen and, possibly, hangs the window system. On the upside, the Missingno is definitely a non-rectangular window.
test/testeyes.c
--- a/test/testeyes.c	Sun Jul 18 14:47:04 2010 -0400
+++ b/test/testeyes.c	Sun Jul 18 15:15:05 2010 -0400
@@ -130,7 +130,7 @@
 		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");
@@ -169,7 +169,7 @@
 		}
 	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);