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
|
@ -74,7 +74,7 @@ typedef struct {
|
|||
ScalerLineHandler_t linePalHandler;
|
||||
ScalerComplexHandler_t complexHandler;
|
||||
Bitu blocks, lastBlock;
|
||||
Bitu outPitch;
|
||||
int outPitch;
|
||||
Bit8u *outWrite;
|
||||
Bitu cachePitch;
|
||||
Bit8u *cacheRead;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue