Ver código fonte

Modify the check condition for the screen window height and width. It can't be less than zero because it's an unsigned int (#1497)

pull/1500/head
Victor Gallet 4 anos atrás
committed by GitHub
pai
commit
57fef97433
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/core.c

+ 2
- 2
src/core.c Ver arquivo

@ -3182,8 +3182,8 @@ static bool InitGraphicsDevice(int width, int height)
CORE.Window.display.height = mode->height;
// Screen size security check
if (CORE.Window.screen.width <= 0) CORE.Window.screen.width = CORE.Window.display.width;
if (CORE.Window.screen.height <= 0) CORE.Window.screen.height = CORE.Window.display.height;
if (CORE.Window.screen.width == 0) CORE.Window.screen.width = CORE.Window.display.width;
if (CORE.Window.screen.height == 0) CORE.Window.screen.height = CORE.Window.display.height;
#endif // PLATFORM_DESKTOP
#if defined(PLATFORM_WEB)

Carregando…
Cancelar
Salvar