Explorar el Código

prevent back to exclusive fullscreen if windowed

ncannasse hace 8 años
padre
commit
16b90a8a2f
Se han modificado 1 ficheros con 2 adiciones y 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;