Fix off-by-one in CLEAR region

This commit is contained in:
Jannik Vogel 2015-08-20 16:43:52 +02:00
parent 9e688ababf
commit 07e914fc56
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);