Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32: Fix crash from win32 surface's image size too small
Beginning in 1.12, a crash can occur when the win32 surface's image size does not cover the entire surface (e.g. due to clipping regions). This patch enlarges the fallback surface created of the amount necessary not to write past the end of the DIB. It assumes that Clip applied to an HDC are clamped to (0,0,width,height) of the HDC. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=53121 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
- Loading branch information