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,10 +5308,10 @@ 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;
unsigned int scissor_width = xmax - xmin + 1;
unsigned int scissor_height = ymax - ymin + 1;
pgraph_apply_anti_aliasing_factor(pg, &scissor_x, &scissor_y);
pgraph_apply_anti_aliasing_factor(pg, &scissor_width, &scissor_height);