mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
Fix Off-by-one error with zoom Window using OpenGL
This commit is contained in:
@@ -247,8 +247,8 @@ void Renderer::RenderZoom()
|
|||||||
|
|
||||||
zcx1 = (zoomScopePosition.X)*xfactor;
|
zcx1 = (zoomScopePosition.X)*xfactor;
|
||||||
zcx0 = (zoomScopePosition.X+zoomScopeSize)*xfactor;
|
zcx0 = (zoomScopePosition.X+zoomScopeSize)*xfactor;
|
||||||
zcy1 = (zoomScopePosition.Y)*yfactor;
|
zcy1 = (zoomScopePosition.Y-1)*yfactor;
|
||||||
zcy0 = ((zoomScopePosition.Y+zoomScopeSize))*yfactor;
|
zcy0 = ((zoomScopePosition.Y-1+zoomScopeSize))*yfactor;
|
||||||
|
|
||||||
glGetIntegerv(GL_BLEND_SRC, &origBlendSrc);
|
glGetIntegerv(GL_BLEND_SRC, &origBlendSrc);
|
||||||
glGetIntegerv(GL_BLEND_DST, &origBlendDst);
|
glGetIntegerv(GL_BLEND_DST, &origBlendDst);
|
||||||
|
Reference in New Issue
Block a user