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:
parent
241f6d1c41
commit
06805b28fb
3 changed files with 19 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue