1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-10-09 23:57:26 -04:00

Update implot.cpp

This commit is contained in:
ozlb 2020-05-05 08:56:25 +02:00 committed by GitHub
parent f98cda45bd
commit 5e3b283f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2269,6 +2269,8 @@ inline void PlotDigitalEx(const char* label_id, Getter getter, int count, int of
}
//do not extend plot outside plot range
if (pMin.x < gp.PixelRange.Min.x) pMin.x = gp.PixelRange.Min.x;
if (pMax.x < gp.PixelRange.Min.x) pMax.x = gp.PixelRange.Min.x;
if (pMin.x > gp.PixelRange.Max.x) pMin.x = gp.PixelRange.Max.x;
if (pMax.x > gp.PixelRange.Max.x) pMax.x = gp.PixelRange.Max.x;
//plot a rectangle that extends up to x2 with y1 height
if (!cull || gp.BB_Grid.Contains(pMin) || gp.BB_Grid.Contains(pMax)) {