Skip to content

Commit

Permalink
atari:video:gem: SDL_GEM_ALIGN_WINDOW -> SDL_VIDEO_ALIGNED_WINDOWS
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrosk committed Jun 29, 2024
1 parent 9cfbedc commit 04540b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README.MiNT
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion src/video/gem/SDL_gemvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 04540b7

Please sign in to comment.