Merge pull request #39 from JayFoxRox/fix-clear

Fix off-by-one in CLEAR region
This commit is contained in:
espes 2015-08-21 14:41:02 +10:00
commit d90dee0892
1 changed files with 3 additions and 3 deletions

View File

@ -5308,7 +5308,7 @@ static void pgraph_method(NV2AState *d,
NV_PGRAPH_CLEARRECTY_YMAX);
unsigned int scissor_x = xmin;
unsigned int scissor_y = pg->surface_shape.clip_height-ymax;
unsigned int scissor_y = pg->surface_shape.clip_height - ymax - 1;
unsigned int scissor_width = xmax - xmin + 1;
unsigned int scissor_height = ymax - ymin + 1;