Cleanup and document GFX_StartUpdate function
Usage of this function depends on the state of global sdl struct; and it's very easy to make a mistake - documentation should lower this risk. Change the type of output parameter 'pitch' and assure type safety with internal SDL types via static asserts.
This commit is contained in:
parent
08934b2972
commit
0b173eec08
3 changed files with 35 additions and 24 deletions
|
@ -64,7 +64,7 @@ void GFX_ResetScreen(void);
|
|||
void GFX_Start(void);
|
||||
void GFX_Stop(void);
|
||||
void GFX_SwitchFullScreen(void);
|
||||
bool GFX_StartUpdate(Bit8u * & pixels,Bitu & pitch);
|
||||
bool GFX_StartUpdate(uint8_t * &pixels, int &pitch);
|
||||
void GFX_EndUpdate( const Bit16u *changedLines );
|
||||
void GFX_GetSize(int &width, int &height, bool &fullscreen);
|
||||
void GFX_LosingFocus(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue