mirror of
https://github.com/ProgramSnail/rts_game_backend.git
synced 2026-01-25 21:07:08 +00:00
some fixes
This commit is contained in:
parent
eea91417c9
commit
4f2bfac443
7 changed files with 85 additions and 32 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace draw {
|
||||
void initColorPairs() {
|
||||
init_pair(ColorScheme::blank, COLOR_BLACK, COLOR_WHITE);
|
||||
init_pair(ColorScheme::simple, COLOR_BLACK, COLOR_WHITE);
|
||||
init_pair(ColorScheme::map_simple, COLOR_BLACK, COLOR_WHITE);
|
||||
init_pair(ColorScheme::map_active, COLOR_WHITE, COLOR_BLACK);
|
||||
init_pair(ColorScheme::menu_simple, COLOR_BLACK, COLOR_WHITE);
|
||||
|
|
@ -33,14 +33,14 @@ namespace draw {
|
|||
clear();
|
||||
}
|
||||
|
||||
void drawCh(uint32_t x, uint32_t y,
|
||||
void drawCh(size_t x, size_t y,
|
||||
Cell cell, ColorScheme colorScheme) {
|
||||
attron(COLOR_PAIR(colorScheme));
|
||||
mvaddch(y, x, cell);
|
||||
attroff(COLOR_PAIR(colorScheme));
|
||||
}
|
||||
|
||||
void getSize(uint32_t& x, uint32_t& y) {
|
||||
void getSize(size_t& x, size_t& y) { // is it work ??
|
||||
getmaxyx(stdscr, y, x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue