From e7cb6ddb2e27610c5cca5fd9cfe3156a227555e4 Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Fri, 7 Mar 2003 14:52:24 +0000 Subject: Some cleanup, now follows the ScummVM coding guidelines more closely, also added initialiseGrids() svn-id: r6741 --- sky/intro.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'sky/intro.cpp') diff --git a/sky/intro.cpp b/sky/intro.cpp index 872f86452e..04761bf45b 100644 --- a/sky/intro.cpp +++ b/sky/intro.cpp @@ -216,25 +216,25 @@ uint32 anim6b_commands[] = uint32 *command_pointer = (uint32 *)zero_commands; -void SkyState::init_virgin() -{ - _temp_pal = (uint8 *)load_file(60111, NULL); - if (_temp_pal != NULL) - set_palette(_temp_pal); +void SkyState::initVirgin() { + + _tempPal = (uint8 *)loadFile(60111, NULL); + if (_tempPal != NULL) + setPalette(_tempPal); - _work_screen = (uint8 *)load_file(60110, NULL); + _workScreen = (uint8 *)loadFile(60110, NULL); - if (_work_screen != NULL) - show_screen(); + if (_workScreen != NULL) + showScreen(); // free the memory that was malloc'ed indirectly via load_file - free(_work_screen); - free(_temp_pal); + free(_workScreen); + free(_tempPal); } -void SkyState::show_screen(void) -{ - _system->copy_rect(_work_screen, 320, 0, 0, 320, 200); +void SkyState::showScreen(void) { + + _system->copy_rect(_workScreen, 320, 0, 0, 320, 200); _system->update_screen(); } -- cgit v1.2.3