Minor code clarification.
Clarifies usage of a non-intuitive SDL error code in CVideo::fill.
This commit is contained in:
parent
e681ef3a32
commit
603006f0ed
1 changed files with 3 additions and 3 deletions
|
@ -178,10 +178,10 @@ int CVideo::fill(
|
|||
uint8_t r, uint8_t g, uint8_t b, uint8_t a)
|
||||
{
|
||||
int e = SDL_SetRenderDrawColor(*window, r, g, b, a);
|
||||
if (e) {
|
||||
return e;
|
||||
} else {
|
||||
if (e == 0) {
|
||||
return SDL_RenderFillRect(*window, &area);
|
||||
} else {
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue