summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Michelotti <michelotti.matthew@gmail.com>2018-08-02 22:23:53 -0500
committerMatthew Michelotti <michelotti.matthew@gmail.com>2018-08-02 22:23:53 -0500
commit642f970d627b63feb79f61664189a6c33d1cb897 (patch)
tree140de569380b407d40792a0612fed03143b72ae2
parentb6b94ac78b2e1443433a51330cfd3c2dc7d21eb0 (diff)
using SDL2 desktop fullscreen mode to avoid blurring
-rw-r--r--gate/src/core/sdl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gate/src/core/sdl/mod.rs b/gate/src/core/sdl/mod.rs
index b808c3a..9129477 100644
--- a/gate/src/core/sdl/mod.rs
+++ b/gate/src/core/sdl/mod.rs
@@ -109,7 +109,7 @@ pub fn run<AS: AppAssetId, AP: App<AS>>(info: AppInfo, mut app: AP) {
match (ctx.is_fullscreen(), ctx.desires_fullscreen()) {
(false, true) => {
- let success = sdl_renderer.window_mut().unwrap().set_fullscreen(FullscreenType::True).is_ok();
+ let success = sdl_renderer.window_mut().unwrap().set_fullscreen(FullscreenType::Desktop).is_ok();
ctx.set_is_fullscreen(success);
},
(true, false) => {