Skip to content
Permalink
Browse files

Do not allocate in STRAM if TTRAM allocation is mandatory

  • Loading branch information
pmandin committed Apr 17, 2015
1 parent 84e079c commit 7033d9fe145ca6fc09b90a1c5a42962c50b4b5ca
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/ataricommon/SDL_atarimxalloc.c
@@ -47,6 +47,9 @@ void *Atari_SysMalloc(Uint32 size, Uint16 alloc_type)
if (atari_mxalloc_avail) {
return (void *) Mxalloc(size, alloc_type);
} else {
if (alloc_type==MX_TTRAM) {
return NULL;
}
return (void *) Malloc(size);
}
}

0 comments on commit 7033d9f

Please sign in to comment.