Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
Archivist
/
raylib-src
espelhamento de
https://github.com/raysan5/raylib
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
24
Wiki
Atividade
Ver código fonte
GetCurrentMonitor() - check window center instead of top-left corner (
#3468
)
pull/3472/head
Alexandre Almeida
1 ano atrás
committed by
GitHub
pai
9a687e3153
commit
2f6b2897fe
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG:
4AEE18F83AFDEB23
1 arquivos alterados
com
2 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+2
-0
src/platforms/rcore_desktop.c
+ 2
- 0
src/platforms/rcore_desktop.c
Ver arquivo
@ -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
+
+
)
{
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar