summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Michelotti <michelotti.matthew@gmail.com>2018-05-24 17:33:03 -0500
committerMatthew Michelotti <michelotti.matthew@gmail.com>2018-05-24 17:33:03 -0500
commit257c8412d478cbbfae4668acb71f60848bdc4ba1 (patch)
tree8c5c57c277cd285340653f0c4b54404233536186
parent7091ab728345607cc028a1364ba1280df69cc58b (diff)
removed lower-bound for SDL window size
-rw-r--r--gate/src/core/sdl/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/gate/src/core/sdl/mod.rs b/gate/src/core/sdl/mod.rs
index 6f823a2..51cb2d2 100644
--- a/gate/src/core/sdl/mod.rs
+++ b/gate/src/core/sdl/mod.rs
@@ -44,8 +44,6 @@ use self::app_clock::AppClock;
use self::event_handler::EventHandler;
use super::mark_app_created_flag;
-const MIN_WINDOW_SIZE: u32 = 100;
-
pub fn run<AS: AppAssetId, AP: App<AS>>(info: AppInfo, mut app: AP) {
mark_app_created_flag();
@@ -89,7 +87,7 @@ pub fn run<AS: AppAssetId, AP: App<AS>>(info: AppInfo, mut app: AP) {
}
let screen_dims = sdl_renderer.window().unwrap().size();
- if screen_dims.0 >= MIN_WINDOW_SIZE && screen_dims.1 >= MIN_WINDOW_SIZE {
+ if screen_dims.0 > 0 && screen_dims.1 > 0 {
renderer.set_screen_dims(screen_dims);
ctx.set_dims(renderer.app_dims());
app.render(&mut renderer, &ctx);