fix size error when mmapping and mallocing buffers

We used to calculate the size of buffers by multipling the xres and
yres, but there is a field in global_fix_screen_info indicating the real
length of the framebuffer.