mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
Merge commit '8d7e400f8eaa964f359849df34306ade247cf850'
This commit is contained in:
commit
c6ea262baf
1 changed files with 8 additions and 0 deletions
|
@ -1440,6 +1440,13 @@ void DCanvas::FillSimplePoly(FTexture *tex, FVector2 *points, int npoints,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BYTE *destorgsave = dc_destorg;
|
||||||
|
dc_destorg = screen->GetBuffer();
|
||||||
|
if (dc_destorg == NULL)
|
||||||
|
{
|
||||||
|
I_FatalError("Attempt to write to buffer of hardware canvas");
|
||||||
|
}
|
||||||
|
|
||||||
scalex /= tex->Scale.X;
|
scalex /= tex->Scale.X;
|
||||||
scaley /= tex->Scale.Y;
|
scaley /= tex->Scale.Y;
|
||||||
|
|
||||||
|
@ -1545,6 +1552,7 @@ void DCanvas::FillSimplePoly(FTexture *tex, FVector2 *points, int npoints,
|
||||||
pt1 = pt2;
|
pt1 = pt2;
|
||||||
pt2--; if (pt2 < 0) pt2 = npoints;
|
pt2--; if (pt2 < 0) pt2 = npoints;
|
||||||
} while (pt1 != botpt);
|
} while (pt1 != botpt);
|
||||||
|
dc_destorg = destorgsave;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue