소스 검색

Minor format tweaks for PR #1036

pull/1039/head
Ray 5 년 전
부모
커밋
b8246d8592
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      src/core.c

+ 4
- 4
src/core.c 파일 보기

@ -934,7 +934,8 @@ void SetWindowMonitor(int monitor)
if ((monitor >= 0) && (monitor < monitorCount)) if ((monitor >= 0) && (monitor < monitorCount))
{ {
TraceLog(LOG_INFO, "Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor])); TraceLog(LOG_INFO, "Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor]));
const GLFWvidmode* mode = glfwGetVideoMode(monitors[monitor]);
const GLFWvidmode *mode = glfwGetVideoMode(monitors[monitor]);
glfwSetWindowMonitor(window, monitors[monitor], 0, 0, mode->width, mode->height, mode->refreshRate); glfwSetWindowMonitor(window, monitors[monitor], 0, 0, mode->width, mode->height, mode->refreshRate);
} }
else TraceLog(LOG_WARNING, "Selected monitor not found"); else TraceLog(LOG_WARNING, "Selected monitor not found");
@ -2745,9 +2746,8 @@ static bool InitGraphicsDevice(int width, int height)
} }
#if defined(PLATFORM_DESKTOP) #if defined(PLATFORM_DESKTOP)
// If we are windowed fullscreen, ensures that window does not minimize
// when focus is lost.
if (screenHeight == displayHeight && screenWidth == displayWidth)
// If we are windowed fullscreen, ensures that window does not minimize when focus is lost
if ((screenHeight == displayHeight) && (screenWidth == displayWidth))
{ {
glfwWindowHint(GLFW_AUTO_ICONIFY, 0); glfwWindowHint(GLFW_AUTO_ICONIFY, 0);
} }

불러오는 중...
취소
저장