diff --git a/render.c b/render.c index 418d38c..dac6f0a 100644 --- a/render.c +++ b/render.c @@ -30,8 +30,8 @@ DWORD WINAPI render_main(void) int i,j; HGLRC hRC; - int tex_width = ddraw->render.width > 1024 ? ddraw->render.width : 1024; - int tex_height = ddraw->render.height > 1024 ? ddraw->render.height : 1024; + int tex_width = ddraw->width > 1024 ? ddraw->width : 1024; + int tex_height = ddraw->height > 1024 ? ddraw->height : 1024; float scale_w = 1.0f; float scale_h = 1.0f; int *tex = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, tex_width * tex_height * sizeof(int));