Merge branch 'master' into master
This commit is contained in:
commit
1ef9b9677f
|
|
@ -5,12 +5,13 @@ project(example)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
set(RAYLIB_VERSION 4.2.0)
|
set(RAYLIB_VERSION 4.5.0)
|
||||||
find_package(raylib ${RAYLIB_VERSION} QUIET) # QUIET or REQUIRED
|
find_package(raylib ${RAYLIB_VERSION} QUIET) # QUIET or REQUIRED
|
||||||
if (NOT raylib_FOUND) # If there's none, fetch and build raylib
|
if (NOT raylib_FOUND) # If there's none, fetch and build raylib
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
raylib
|
raylib
|
||||||
|
DOWNLOAD_EXTRACT_TIMESTAMP OFF
|
||||||
URL https://github.com/raysan5/raylib/archive/refs/tags/${RAYLIB_VERSION}.tar.gz
|
URL https://github.com/raysan5/raylib/archive/refs/tags/${RAYLIB_VERSION}.tar.gz
|
||||||
)
|
)
|
||||||
FetchContent_GetProperties(raylib)
|
FetchContent_GetProperties(raylib)
|
||||||
|
|
|
||||||
|
|
@ -1785,7 +1785,7 @@ int GetCurrentMonitor(void)
|
||||||
monitor = monitors[i];
|
monitor = monitors[i];
|
||||||
glfwGetMonitorWorkarea(monitor, &mx, &my, &width, &height);
|
glfwGetMonitorWorkarea(monitor, &mx, &my, &width, &height);
|
||||||
|
|
||||||
if (x >= mx && x <= (mx + width) && y >= my && y <= (my + height))
|
if (x >= mx && x < (mx + width) && y >= my && y < (my + height))
|
||||||
{
|
{
|
||||||
index = i;
|
index = i;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user