diff --git a/src/image.c b/src/image.c index c0e9a2f..e79aba1 100644 --- a/src/image.c +++ b/src/image.c @@ -78,7 +78,7 @@ struct image *image_load(const char *name) } #endif - pic->lpVtbl->get_CurDC(pic, &dc); + dc = CreateCompatibleDC(NULL); if(GetDeviceCaps(dc, BITSPIXEL) < 24) {