1
0
Fork 0

Change bpp to unsigned int around render code

Max value of bpp is 32, so there's really no reason to tie this variable
to architecture size.  This change prevents few -Wformat warnings.
This commit is contained in:
Patryk Obara 2020-03-27 13:57:08 +01:00 committed by Patryk Obara
parent 241f6d1c41
commit 06805b28fb
3 changed files with 19 additions and 18 deletions

View file

@ -547,7 +547,9 @@ static void RENDER_CallBack( GFX_CallBackFunctions_t function ) {
}
}
void RENDER_SetSize(Bitu width,Bitu height,Bitu bpp,float fps,double ratio,bool dblw,bool dblh) {
void RENDER_SetSize(Bitu width, Bitu height, unsigned bpp, float fps,
double ratio, bool dblw, bool dblh)
{
RENDER_Halt( );
if (!width || !height || width > SCALER_MAXWIDTH || height > SCALER_MAXHEIGHT) {
return;
@ -558,13 +560,13 @@ void RENDER_SetSize(Bitu width,Bitu height,Bitu bpp,float fps,double ratio,bool
} else {
//This would alter the width of the screen, we don't care about rounding errors here
}
render.src.width=width;
render.src.height=height;
render.src.bpp=bpp;
render.src.dblw=dblw;
render.src.dblh=dblh;
render.src.fps=fps;
render.src.ratio=ratio;
render.src.width = width;
render.src.height = height;
render.src.bpp = bpp;
render.src.dblw = dblw;
render.src.dblh = dblh;
render.src.fps = fps;
render.src.ratio = ratio;
RENDER_Reset( );
}