mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 19:14:09 +00:00
tried to fix some half-pixel bugs
This commit is contained in:
parent
c076998ba3
commit
1b5616688e
3 changed files with 23 additions and 16 deletions
|
@ -58,13 +58,13 @@ CMBlur::CreateImmediateModeData(RwCamera *cam, RwRect *rect)
|
|||
float zero, xmax, ymax;
|
||||
|
||||
if(RwRasterGetDepth(RwCameraGetRaster(cam)) == 16){
|
||||
zero = 0.5f;
|
||||
xmax = rect->w + 0.5f;
|
||||
ymax = rect->h + 0.5f;
|
||||
zero = HALFPX;
|
||||
xmax = rect->w + HALFPX;
|
||||
ymax = rect->h + HALFPX;
|
||||
}else{
|
||||
zero = -0.5f;
|
||||
xmax = rect->w - 0.5f;
|
||||
ymax = rect->h - 0.5f;
|
||||
zero = -HALFPX;
|
||||
xmax = rect->w - HALFPX;
|
||||
ymax = rect->h - HALFPX;
|
||||
}
|
||||
|
||||
RwIm2DVertexSetScreenX(&Vertex[0], zero);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue