comparison TOOLS/bmovl-test.c @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents 7dbca1914d9f
children b573c7c7173b
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
13 blit(int fifo, unsigned char *bitmap, int width, int height, 13 blit(int fifo, unsigned char *bitmap, int width, int height,
14 int xpos, int ypos, int alpha, int clear) 14 int xpos, int ypos, int alpha, int clear)
15 { 15 {
16 char str[100]; 16 char str[100];
17 int nbytes; 17 int nbytes;
18 18
19 sprintf(str, "RGBA32 %d %d %d %d %d %d\n", 19 sprintf(str, "RGBA32 %d %d %d %d %d %d\n",
20 width, height, xpos, ypos, alpha, clear); 20 width, height, xpos, ypos, alpha, clear);
21 21
22 if(DEBUG) printf("Sending %s", str); 22 if(DEBUG) printf("Sending %s", str);
23 23
24 write(fifo, str, strlen(str)); 24 write(fifo, str, strlen(str));
25 nbytes = write(fifo, bitmap, width*height*4); 25 nbytes = write(fifo, bitmap, width*height*4);
26 26
31 set_alpha(int fifo, int width, int height, int xpos, int ypos, int alpha) { 31 set_alpha(int fifo, int width, int height, int xpos, int ypos, int alpha) {
32 char str[100]; 32 char str[100];
33 33
34 sprintf(str, "ALPHA %d %d %d %d %d\n", 34 sprintf(str, "ALPHA %d %d %d %d %d\n",
35 width, height, xpos, ypos, alpha); 35 width, height, xpos, ypos, alpha);
36 36
37 if(DEBUG) printf("Sending %s", str); 37 if(DEBUG) printf("Sending %s", str);
38 38
39 write(fifo, str, strlen(str)); 39 write(fifo, str, strlen(str));
40 } 40 }
41 41
108 108
109 // Fade in image 109 // Fade in image
110 for(i=-255; i <= 0; i++) 110 for(i=-255; i <= 0; i++)
111 set_alpha(fifo, image->w, image->h, 111 set_alpha(fifo, image->w, image->h,
112 (width/2)-(image->w/2), (height/2)-(image->h/2), i); 112 (width/2)-(image->w/2), (height/2)-(image->h/2), i);
113 113
114 114
115 // Clean up 115 // Clean up
116 free(bitmap); 116 free(bitmap);
117 SDL_FreeSurface(image); 117 SDL_FreeSurface(image);
118 118