From 04540b7cf9194b96bdcc0ed097a7e2c5ff04cfd9 Mon Sep 17 00:00:00 2001 From: Miro Kropacek Date: Fri, 28 Jun 2024 23:06:24 +0200 Subject: [PATCH] atari:video:gem: SDL_GEM_ALIGN_WINDOW -> SDL_VIDEO_ALIGNED_WINDOWS --- README.MiNT | 9 ++++----- src/video/gem/SDL_gemvideo.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.MiNT b/README.MiNT index 82e31a3f..bee2eb63 100644 --- a/README.MiNT +++ b/README.MiNT @@ -102,6 +102,10 @@ SDL_VIDEODRIVER: SDL_VIDEO_GL_DRIVER: Set to filename to load as OpenGL library, if you use SDL_GL_LoadLibrary() +SDL_VIDEO_ALIGNED_WINDOWS: + Set to force aligning of the window's x coordinate to a 16-pixel boundary + (e.g. for speed reasons) + SDL_AUDIODRIVER: Set to 'mint_gsxb' to force Atari GSXB audio driver Set to 'mint_mcsn' to force Atari MCSN audio driver @@ -155,11 +159,6 @@ SDL_JOYSTICK_ATARI: - Lightpen, analog paddles: 2 axis, 2 buttons. The 2 buttons are those affected to 1 button joysticks on the same port. -SDL_GEM_ALIGN_WINDOW: - - The gem video driver no longer aligns the window to a 16-pixel - boundary. If you want the old behaviour (e.g. for speed reasons), - set this environment variable. - ============================================================================== VI. More informations about drivers: diff --git a/src/video/gem/SDL_gemvideo.c b/src/video/gem/SDL_gemvideo.c index 8a151cb8..9ddb71a6 100644 --- a/src/video/gem/SDL_gemvideo.c +++ b/src/video/gem/SDL_gemvideo.c @@ -456,7 +456,7 @@ int GEM_VideoInit(_THIS, SDL_PixelFormat *vformat) VDI_ReadExtInfo(this, work_out); if (VDI_format == VDI_FORMAT_INTER) - GEM_align_windows = SDL_getenv("SDL_GEM_ALIGN_WINDOW") != NULL; + GEM_align_windows = SDL_getenv("SDL_VIDEO_ALIGNED_WINDOWS") != NULL; else GEM_align_windows = SDL_FALSE;