comparison src/video/x11/SDL_x11events.c @ 2328:91e601d9df8b

re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
author Bob Pendleton <bob@pendleton.com>
date Fri, 14 Mar 2008 18:17:49 +0000
parents 7b53a8401195
children 44e49d3fa6cf 64f346a83ed3
comparison
equal deleted inserted replaced
2327:7b53a8401195 2328:91e601d9df8b
42 42
43 /* filter events catchs XIM events and sends them to the correct 43 /* filter events catchs XIM events and sends them to the correct
44 handler */ 44 handler */
45 if (XFilterEvent(&xevent, None) == True) { 45 if (XFilterEvent(&xevent, None) == True) {
46 #if 0 46 #if 0
47 printf("Filtered event type = %d display = %d window = %d\n", 47 printf("Filtered event type = %d display = %d window = %d\n",
48 xevent.type, xevent.xany.display, xevent.xany.window); 48 xevent.type, xevent.xany.display, xevent.xany.window);
49 #endif 49 #endif
50 return; 50 return;
51 } 51 }
52 52
53 /* Send a SDL_SYSWMEVENT if the application wants them */ 53 /* Send a SDL_SYSWMEVENT if the application wants them */
71 } 71 }
72 } 72 }
73 if (!data) { 73 if (!data) {
74 return; 74 return;
75 } 75 }
76
77 #if 0 76 #if 0
78 printf("type = %d display = %d window = %d\n", 77 printf("type = %d display = %d window = %d\n",
79 xevent.type, xevent.xany.display, xevent.xany.window); 78 xevent.type, xevent.xany.display, xevent.xany.window);
80 #endif 79 #endif
81 switch (xevent.type) { 80 switch (xevent.type) {
82 81
83 /* Gaining mouse coverage? */ 82 /* Gaining mouse coverage? */
84 case EnterNotify:{ 83 case EnterNotify:{