Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
Archivist
/
raylib-src
peilaus alkaen
https://github.com/raysan5/raylib
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Julkaisut
24
Wiki
Toiminta
Selaa lähdekoodia
GetCurrentMonitor() - check window center instead of top-left corner (
#3468
)
pull/3472/head
Alexandre Almeida
2 vuotta sitten
committed by
GitHub
vanhempi
9a687e3153
commit
2f6b2897fe
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 muutettua tiedostoa
jossa
2 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/platforms/rcore_desktop.c
+ 2
- 0
src/platforms/rcore_desktop.c
Näytä tiedosto
@ -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
+
+
)
{
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna