mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19965) -Cleanup: Use size of buffer, not magic number.
This commit is contained in:
parent
64e63b72e9
commit
4b4e97695f
|
@ -476,7 +476,7 @@ const char *VideoDriver_SDL::Start(const char * const *parm)
|
||||||
return SDL_CALL SDL_GetError();
|
return SDL_CALL SDL_GetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_CALL SDL_VideoDriverName(buf, 30);
|
SDL_CALL SDL_VideoDriverName(buf, sizeof buf);
|
||||||
DEBUG(driver, 1, "SDL: using driver '%s'", buf);
|
DEBUG(driver, 1, "SDL: using driver '%s'", buf);
|
||||||
|
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
|
|
Loading…
Reference in New Issue