2dlib: Fix another set but not used variable compiler warning in surface.cpp

This commit is contained in:
Sebastian Holtermann 2024-10-30 14:44:37 +01:00
parent d49691143c
commit 987a51d38d

View File

@ -667,11 +667,10 @@ void grSurface::xlat24_16(char *data, int w, int h) {
char *sptr;
uint16_t *dptr;
int scol, dcol, row;
int rowsize_w, height, width;
int height, width;
dptr = (uint16_t *)m_DataPtr;
sptr = (char *)data;
rowsize_w = m_DataRowsize / 2;
height = std::min(h, ddsfObj.h);
width = std::min(w, ddsfObj.w);