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;
}

View File

@ -455,9 +455,9 @@ static void d3d9_init(IDirect3DDevice9 *device)
{
IDirect3DDevice9Ex *d3d9ex = nullptr;
bool success;
uint32_t cx;
uint32_t cy;
HWND window;
uint32_t cx = 0;
uint32_t cy = 0;
HWND window = nullptr;
HRESULT hr;
data.d3d9 = get_system_module("d3d9.dll");