Raffaello / sdl2-vga-terminal

SDL2 VGA Terminal
MIT License
6 stars 1 forks source link

[VgaTerminal] create viewport struct #157

Open Raffaello opened 4 years ago

Raffaello commented 4 years ago

instead of using SDLRect that is using int types, create one similar that is using uint8_t types, to avoid warning during compilation and avoid to use negative or bigger numbers (well a constraints)

note that 4 uint8_t are 1 int so it can be packed in a int, saving also 4 times space...

NOTE: this will break minor version...