mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-21 15:56:21 +08:00
fix plot grid for non-integer zoom factors
This commit is contained in:
parent
4c85ce5f2f
commit
984b0d4803
|
@ -512,8 +512,8 @@ void Plot::plotGridLines(QPainter *painter, QRect r) {
|
|||
offset %= PlotGridX;
|
||||
if (offset < 0) offset += PlotGridX;
|
||||
|
||||
int i;
|
||||
int grid_delta_x = (int)(PlotGridX * GraphPixelsPerPoint);
|
||||
double i;
|
||||
double grid_delta_x = PlotGridX * GraphPixelsPerPoint;
|
||||
int grid_delta_y = PlotGridY;
|
||||
|
||||
if ((PlotGridX > 0) && ((PlotGridX * GraphPixelsPerPoint) > 1)) {
|
||||
|
|
Loading…
Reference in a new issue