소스 검색

prevent back to exclusive fullscreen if windowed

ncannasse 8 년 전
부모
커밋
16b90a8a2f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;