Is this intended?

from SDL/src/video/windows/SDL_windowsframebuffer.c

GetDIBits(data->hdc, hbm, 0, 0, NULL, info, DIB_RGB_COLORS);
GetDIBits(data->hdc, hbm, 0, 0, NULL, info, DIB_RGB_COLORS);

duplicate code?

1 Like

The first call fills in the hbm header and the second call fills in the bits.

1 Like