GRAPHICS: Fix MSVC warning

This commit is contained in:
Eugene Sandulenko 2021-06-30 07:08:35 +02:00
parent a7bc634250
commit 7eb9bcf705
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -589,8 +589,8 @@ void Surface::debugPrint(int debuglevel, int width, int height, int x, int y, in
const byte *srcRow = (const byte *)getBasePtr(xx, yy + ys);
for (int xs = 0; xs < scale && xx + xs < w; xs++) {
byte r, g, b, a;
uint32 color;
byte r = 0, g = 0, b = 0, a = 0;
uint32 color = 0;
switch (format.bytesPerPixel) {
case 1: {