Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
Archivist
/
raylib-src
réplica de
https://github.com/raysan5/raylib
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
24
Wiki
Actividad
Explorar el Código
GetCurrentMonitor() - check window center instead of top-left corner (
#3468
)
pull/3472/head
Alexandre Almeida
hace 2 años
cometido por
GitHub
padre
9a687e3153
commit
2f6b2897fe
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG:
4AEE18F83AFDEB23
Se han
modificado 1 ficheros
con
2 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+2
-0
src/platforms/rcore_desktop.c
+ 2
- 0
src/platforms/rcore_desktop.c
Ver fichero
@ -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
+
+
)
{
Escribir
Vista previa
Cargando…
Cancelar
Guardar