From 77319903fb9c2b5e640fd6ba8b705bd476208b25 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 21 Oct 2023 09:07:38 +0200 Subject: [PATCH] remove unused var --- src/screenshot.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/screenshot.c b/src/screenshot.c index d03e029..4ed72fc 100644 --- a/src/screenshot.c +++ b/src/screenshot.c @@ -230,8 +230,6 @@ static BOOL ss_screenshot_bmp(char* filename, IDirectDrawSurfaceImpl* src) // Copy the array of color indices into the .BMP file. DWORD cb = pbih->biSizeImage; - DWORD total = pbih->biSizeImage; - if (!WriteFile(hf, (LPSTR)dds_GetBuffer(src), (int)cb, (LPDWORD)&tmp, NULL)) { result = FALSE;