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

@ -52,7 +52,7 @@ typedef struct {
struct {
Bitu width, start;
Bitu height;
Bitu bpp;
unsigned bpp;
bool dblw,dblh;
double ratio;
float fps;
@ -93,12 +93,12 @@ typedef struct {
extern Render_t render;
extern ScalerLineHandler_t RENDER_DrawLine;
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);
bool RENDER_StartUpdate(void);
void RENDER_EndUpdate(bool abort);
void RENDER_SetPal(Bit8u entry,Bit8u red,Bit8u green,Bit8u blue);
bool RENDER_GetForceUpdate(void);
void RENDER_SetForceUpdate(bool);
#endif