(svn r22820) -Codechange: perform a full (re)draw cycle in the first draw during progress instead of waiting 200ms
This commit is contained in:
@@ -1787,7 +1787,13 @@ struct ScanProgressWindow : public Window {
|
||||
void UpdateNewGRFScanStatus(uint num, const char *name)
|
||||
{
|
||||
free(this->last_name);
|
||||
this->last_name = strdup(name);
|
||||
if (name == NULL) {
|
||||
char buf[256];
|
||||
GetString(buf, STR_NEWGRF_SCAN_ARCHIVES, lastof(buf));
|
||||
this->last_name = strdup(buf);
|
||||
} else {
|
||||
this->last_name = strdup(name);
|
||||
}
|
||||
this->scanned = num;
|
||||
if (num > _settings_client.gui.last_newgrf_count) _settings_client.gui.last_newgrf_count = num;
|
||||
|
||||
|
Reference in New Issue
Block a user