mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Debian patch: 216_page_size.diff
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -180,7 +180,7 @@ SDL_Overlay *GS_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SD
|
||||
|
||||
/* 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)) +
|
||||
|
||||
Reference in New Issue
Block a user