mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
De-C++-ify struct ScreenSettings
This includes: - Removing the constructor in favor of actually being able to see that there's an actual function called being made initializing the struct - Removing the use of a reference in Screen::init() in favor of using a pointer - Adding the struct qualifier everywhere (it's not much typing), although technically you could typedef it in C, but I'd rather much not typedef just to remove a tag qualifier
This commit is contained in:
@@ -571,10 +571,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
// Prioritize unlock.vvv first (2.2 and below),
|
||||
// but settings have been migrated to settings.vvv (2.3 and up)
|
||||
ScreenSettings screen_settings;
|
||||
struct ScreenSettings screen_settings;
|
||||
ScreenSettings_default(&screen_settings);
|
||||
game.loadstats(&screen_settings);
|
||||
game.loadsettings(&screen_settings);
|
||||
gameScreen.init(screen_settings);
|
||||
gameScreen.init(&screen_settings);
|
||||
}
|
||||
|
||||
graphics.create_buffers(gameScreen.GetFormat());
|
||||
|
||||
Reference in New Issue
Block a user