Mercurial > sdl-ios-xcode
changeset 4309:3aab8b57cbd1 SDL-1.2
Debian patch: 216_page_size.diff
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 10 Oct 2009 09:59:29 +0000 |
parents | 447fd6ae10cf |
children | c878006a5948 |
files | src/video/ps2gs/SDL_gsyuv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/ps2gs/SDL_gsyuv.c Sat Oct 10 09:58:32 2009 +0000 +++ b/src/video/ps2gs/SDL_gsyuv.c Sat Oct 10 09:59:29 2009 +0000 @@ -180,7 +180,7 @@ /* Allocate a DMA area for pixel conversion */ bpp = this->screen->format->BytesPerPixel; - map_offset = (mapped_len + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); + map_offset = (mapped_len + (sysconf(_SC_PAGESIZE) - 1)) & ~(sysconf(_SC_PAGESIZE) - 1); hwdata->dma_len = hwdata->macroblocks * (16 * 16 + 8 * 8 + 8 * 8) + width * height * bpp + hwdata->macroblocks * (16 * sizeof(long long)) +