Skip to content

Commit

Permalink
Cleanup window
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbatalov committed Nov 17, 2022
1 parent b191946 commit f390761
Show file tree
Hide file tree
Showing 9 changed files with 606 additions and 638 deletions.
4 changes: 2 additions & 2 deletions src/game/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int game_init(const char* windowTitle, bool isMapper, int font, int a4, int argc

annoy_user();
win_set_minimized_title(windowTitle);
_initWindow(1, a4);
initWindow(1, a4);
palette_init();

char* language;
Expand Down Expand Up @@ -426,7 +426,7 @@ void game_exit()
endgameDeathEndingExit();
FMExit();
trap_exit();
_windowClose();
windowClose();
dbExit();
gconfig_exit(true);
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/gdialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -3144,7 +3144,7 @@ void barter_end_to_talk_to()
dialogQuit();
dialogClose();
updatePrograms();
_updateWindows();
updateWindows();
dialogue_state = 1;
dialogue_switch_mode = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/scripts.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ static void doBkProcesses()
}
}

_updateWindows();
updateWindows();

if (script_engine_running && script_engine_run_critters) {
if (!gdialogActive()) {
Expand Down
6 changes: 3 additions & 3 deletions src/int/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static void printLine(int win, char** strings, int strings_num, int a4, int a5,

for (i = 0; i < strings_num; i++) {
v11 = a7 + i * text_height();
_windowPrintBuf(win, strings[i], strlen(strings[i]), a4, a5 + a7, a6, v11, a8, a9);
windowPrintBuf(win, strings[i], strlen(strings[i]), a4, a5 + a7, a6, v11, a8, a9);
}
}

Expand All @@ -329,9 +329,9 @@ static void printStr(int win, char* a2, int a3, int a4, int a5, int a6, int a7,
char** strings;
int strings_num;

strings = _windowWordWrap(a2, a3, 0, &strings_num);
strings = windowWordWrap(a2, a3, 0, &strings_num);
printLine(win, strings, strings_num, a3, a4, a5, a6, a7, a8);
_windowFreeWordList(strings, strings_num);
windowFreeWordList(strings, strings_num);
}

// 0x430104
Expand Down
Loading

0 comments on commit f390761

Please sign in to comment.