comparison libvo/geometry.c @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents a5f19a8ecc86
children 26347e1dc763
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
32 32
33 #define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = -1; 33 #define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = -1;
34 34
35 // xpos,ypos: position of the left upper corner 35 // xpos,ypos: position of the left upper corner
36 // widw,widh: width and height of the window 36 // widw,widh: width and height of the window
37 // scrw,scrh: width and height of the current screen 37 // scrw,scrh: width and height of the current screen
38 int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh) 38 int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh)
39 { 39 {
40 int width, height, xoff, yoff, xper, yper; 40 int width, height, xoff, yoff, xper, yper;
41 41
42 width = height = xoff = yoff = xper = yper = INT_MIN; 42 width = height = xoff = yoff = xper = yper = INT_MIN;
79 } 79 }
80 80
81 mp_msg(MSGT_VO, MSGL_V,"geometry set to width: %i," 81 mp_msg(MSGT_VO, MSGL_V,"geometry set to width: %i,"
82 "height: %i, xoff: %i, yoff: %i, xper: %i, yper: %i\n", 82 "height: %i, xoff: %i, yoff: %i, xper: %i, yper: %i\n",
83 width, height, xoff, yoff, xper, yper); 83 width, height, xoff, yoff, xper, yper);
84 84
85 if(xper >= 0 && xper <= 100) xoff = (scrw - *widw) * ((float)xper / 100.0); 85 if(xper >= 0 && xper <= 100) xoff = (scrw - *widw) * ((float)xper / 100.0);
86 if(yper >= 0 && yper <= 100) yoff = (scrh - *widh) * ((float)yper / 100.0); 86 if(yper >= 0 && yper <= 100) yoff = (scrh - *widh) * ((float)yper / 100.0);
87 87
88 mp_msg(MSGT_VO, MSGL_V,"geometry set to width: %i," 88 mp_msg(MSGT_VO, MSGL_V,"geometry set to width: %i,"
89 "height: %i, xoff: %i, yoff: %i, xper: %i, yper: %i\n", 89 "height: %i, xoff: %i, yoff: %i, xper: %i, yper: %i\n",
90 width, height, xoff, yoff, xper, yper); 90 width, height, xoff, yoff, xper, yper);
91 mp_msg(MSGT_VO, MSGL_V,"geometry window parameter: widw: %i," 91 mp_msg(MSGT_VO, MSGL_V,"geometry window parameter: widw: %i,"
92 " widh: %i, scrw: %i, scrh: %i\n",*widw, *widh, scrw, scrh); 92 " widh: %i, scrw: %i, scrh: %i\n",*widw, *widh, scrw, scrh);
93 93
94 if (xoff != INT_MIN && xpos) *xpos = xoff; 94 if (xoff != INT_MIN && xpos) *xpos = xoff;
95 if (yoff != INT_MIN && ypos) *ypos = yoff; 95 if (yoff != INT_MIN && ypos) *ypos = yoff;
96 if (width > 0 && widw) *widw = width; 96 if (width > 0 && widw) *widw = width;
97 if (height > 0 && widh) *widh = height; 97 if (height > 0 && widh) *widh = height;
98 98