1
0
Fork 0

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:
Patryk Obara 2020-03-17 13:37:01 +01:00 committed by Patryk Obara
parent 08934b2972
commit 0b173eec08
3 changed files with 35 additions and 24 deletions

View file

@ -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;