GNOME Bugzilla – Bug 594280
directdrawsink: avoid rendering to invalid area
Last modified: 2011-02-08 17:07:29 UTC
Created attachment 142574 [details] [review] patch Check to see if we have an area to draw to.
That patch doesn't look correct. If both differences are negative there shouldn't be any rendering but your patch still renders then. Other than that it looks ok
Havard, could you address the issues raised by Sebastian? Would be a pity if the patch couldn't make it in. Thanks in advance.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!
Tobias: please don't close bugs with patches as INCOMPLETE, especially not if parts of them are known to be good (see comment #1). Thanks!
Looks like being 0 is most relevant here (rather than negative). Anyway, pushed with minor adjustments (e.g. check for valid rectangle before doing aspect ratio calculation stuff): commit edb15598ed566f37d90129492a86341badee0672 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Mon Feb 7 22:47:34 2011 +0100 directdrawsink: avoid rendering to invalid area Based on patch by Havard Graff <havard.graff@tandberg.com> Fixes #594280.