mirror of
https://github.com/gwm17/implot.git
synced 2025-04-22 16:28:51 -04:00
Update implot.cpp
This commit is contained in:
parent
f98cda45bd
commit
5e3b283f5e
|
@ -2269,6 +2269,8 @@ inline void PlotDigitalEx(const char* label_id, Getter getter, int count, int of
|
||||||
}
|
}
|
||||||
//do not extend plot outside plot range
|
//do not extend plot outside plot range
|
||||||
if (pMin.x < gp.PixelRange.Min.x) pMin.x = gp.PixelRange.Min.x;
|
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;
|
if (pMax.x > gp.PixelRange.Max.x) pMax.x = gp.PixelRange.Max.x;
|
||||||
//plot a rectangle that extends up to x2 with y1 height
|
//plot a rectangle that extends up to x2 with y1 height
|
||||||
if (!cull || gp.BB_Grid.Contains(pMin) || gp.BB_Grid.Contains(pMax)) {
|
if (!cull || gp.BB_Grid.Contains(pMin) || gp.BB_Grid.Contains(pMax)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user