소스 검색

Corrected cursor issue for Wayland

pull/479/merge
Ray 7 년 전
부모
커밋
cd5e2e0f17
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/core.c

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

@ -752,7 +752,7 @@ int GetScreenHeight(void)
void ShowCursor() void ShowCursor()
{ {
#if defined(PLATFORM_DESKTOP) #if defined(PLATFORM_DESKTOP)
#if defined(__linux__)
#if defined(__linux__) && defined(_GLFW_X11)
XUndefineCursor(glfwGetX11Display(), glfwGetX11Window(window)); XUndefineCursor(glfwGetX11Display(), glfwGetX11Window(window));
#else #else
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
@ -765,7 +765,7 @@ void ShowCursor()
void HideCursor() void HideCursor()
{ {
#if defined(PLATFORM_DESKTOP) #if defined(PLATFORM_DESKTOP)
#if defined(__linux__)
#if defined(__linux__) && defined(_GLFW_X11)
XColor col; XColor col;
const char nil[] = {0}; const char nil[] = {0};

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