This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
GetCurrentMonitor() - check window center instead of top-left corner (
#3468
)
pull/3472/head
Alexandre Almeida
1 year ago
committed by
GitHub
parent
9a687e3153
commit
2f6b2897fe
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/platforms/rcore_desktop.c
+ 2
- 0
src/platforms/rcore_desktop.c
View File
@ -755,6 +755,8 @@ int GetCurrentMonitor(void)
int
y
=
0
;
glfwGetWindowPos
(
platform
.
handle
,
&
x
,
&
y
)
;
x
+
=
(
int
)
CORE
.
Window
.
screen
.
width
/
2
;
y
+
=
(
int
)
CORE
.
Window
.
screen
.
height
/
2
;
for
(
int
i
=
0
;
i
<
monitorCount
;
i
+
+
)
{
Write
Preview
Loading…
Cancel
Save