mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 19:36:29 +00:00
Fixed spacing
This commit is contained in:
@@ -1087,12 +1087,12 @@ int SDL_GetSystemRAM(void)
|
|||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
if (SDL_SystemRAM <= 0) {
|
if (SDL_SystemRAM <= 0) {
|
||||||
system_info info;
|
system_info info;
|
||||||
if (get_system_info(&info) == B_OK) {
|
if (get_system_info(&info) == B_OK) {
|
||||||
/* To have an accurate amount, we also take in account the inaccessible pages (aka ignored)
|
/* To have an accurate amount, we also take in account the inaccessible pages (aka ignored)
|
||||||
which is a bit handier compared to the legacy system's api (i.e. used_pages).*/
|
which is a bit handier compared to the legacy system's api (i.e. used_pages).*/
|
||||||
SDL_SystemRAM = (int)round((info.max_pages + info.ignored_pages > 0 ? info.ignored_pages : 0) * B_PAGE_SIZE / 1048576.0);
|
SDL_SystemRAM = (int)round((info.max_pages + info.ignored_pages > 0 ? info.ignored_pages : 0) * B_PAGE_SIZE / 1048576.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user