Explorar o código

prevent back to exclusive fullscreen if windowed

ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
16b90a8a2f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      hxd/Stage.hl.hx

+ 2 - 2
hxd/Stage.hl.hx

@@ -142,9 +142,9 @@ class Stage {
 			case Focus:
 				#if hldx
 				// return to exclusive mode
-				if( fullScreenMode == Fullscreen && wasBlurred ) {
+				if( window.displayMode == Fullscreen && wasBlurred ) {
 					window.displayMode = Borderless;
-					window.displayMode = fullScreenMode;
+					window.displayMode = Fullscreen;
 				}
 				#end
 				wasBlurred = false;