For shm buffers, es->pitch is set using the stride of the buffer. If the shell happened to set the surface width to something different than the buffer width, the contents of the surface would be cropped on the width during redraw. However, for non-shm surfaces, es->pitch was set to the surface width. That caused the contents of the buffer to be scaled on the width when the buffer was wider than the surface. This makes the behavior on both cases the same: crop on the width and scale on the height. (which is weird but consistent)dev
parent
fbf2894812
commit
9390ae3ed1
Loading…
Reference in new issue