From 6d11dd5eac7b2ce8a2cb2608dc8fbdf562c94179 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 29 Jan 2020 07:38:18 +0000 Subject: [PATCH] Fix unintentional change of union to struct. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4312 --- src/gui/render_scalers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/render_scalers.cpp b/src/gui/render_scalers.cpp index ae238eec..caa04c65 100644 --- a/src/gui/render_scalers.cpp +++ b/src/gui/render_scalers.cpp @@ -29,7 +29,7 @@ Bit8u Scaler_Aspect[SCALER_MAXHEIGHT]; Bit16u Scaler_ChangedLines[SCALER_MAXHEIGHT]; Bitu Scaler_ChangedLineIndex; -static struct { +static union { //The +1 is a at least for the normal scalers not needed. (-1 is enough) Bit32u b32 [SCALER_MAX_MUL_HEIGHT+1][SCALER_MAXWIDTH*SCALER_MAX_MUL_WIDTH]; Bit16u b16 [SCALER_MAX_MUL_HEIGHT+1][SCALER_MAXWIDTH*SCALER_MAX_MUL_WIDTH];