Skip to content

Commit

Permalink
Debian patch: 216_page_size.diff
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 10, 2009
1 parent 00e69b2 commit 4b9287d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/ps2gs/SDL_gsyuv.c
Expand Up @@ -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)) +
Expand Down

0 comments on commit 4b9287d

Please sign in to comment.