win-capture: Fix potentially uninitialized vars

This commit is contained in:
jp9000
2015-02-08 15:57:09 -08:00
parent aa3bdd9845
commit e2ee8adf77
2 changed files with 5 additions and 7 deletions

View File

@@ -203,20 +203,18 @@ static void duplicator_capture_render(void *data, gs_effect_t *effect)
gs_enable_color(true, true, true, false);
if (rot != 0) {
float x;
float y;
float x = 0.0f;
float y = 0.0f;
switch (rot) {
case 90:
x = (float)capture->height;
y = 0.0f;
break;
case 180:
x = (float)capture->width;
y = (float)capture->height;
break;
case 270:
x = 0.0f;
y = (float)capture->width;
break;
}