updated version number
This commit is contained in:
parent
f3e6bf6d19
commit
ef1faef014
2 changed files with 9 additions and 3 deletions
|
@ -22,6 +22,6 @@ namespace game_config
|
|||
const int cure_amount = 8;
|
||||
const int curer_heals_per_turn = 18;
|
||||
const int recall_cost = 20;
|
||||
const std::string version = "0.4.4";
|
||||
const std::string version = "0.4.7-CVS";
|
||||
bool debug = false;
|
||||
}
|
||||
|
|
|
@ -363,8 +363,14 @@ void pump_events()
|
|||
case SDL_VIDEORESIZE: {
|
||||
const SDL_ResizeEvent* const resize
|
||||
= reinterpret_cast<SDL_ResizeEvent*>(&event);
|
||||
resize_dimensions.first = resize->w > 1024 ? resize->w : 1024;
|
||||
resize_dimensions.second = resize->h > 768 ? resize->h : 768;
|
||||
|
||||
if(resize->w < 1024 || resize->h < 768) {
|
||||
resize_dimensions.first = 0;
|
||||
resize_dimensions.second = 0;
|
||||
} else {
|
||||
resize_dimensions.first = resize->w;
|
||||
resize_dimensions.second = resize->h;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue