mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 05:43:23 -07:00
make grid function linux friendly
This commit is contained in:
parent
ebd7aaf9e7
commit
f4434ad226
6 changed files with 29 additions and 13 deletions
|
@ -2590,9 +2590,7 @@ static void CmdPlot(char *str)
|
|||
|
||||
static void CmdGrid(char *str)
|
||||
{
|
||||
int x = 0, y = 0;
|
||||
sscanf(str, "%i %i", &x, &y);
|
||||
SetGraphGrid(x, y);
|
||||
sscanf(str, "%i %i", &PlotGridX, &PlotGridY);
|
||||
RepaintGraphWindow();
|
||||
}
|
||||
|
||||
|
@ -2734,7 +2732,7 @@ static struct {
|
|||
{"flexdemod", CmdFlexdemod, 1, "Demodulate samples for FlexPass"},
|
||||
{"fpgaoff", CmdFPGAOff, 0, "Set FPGA off"},
|
||||
{"fskdemod", CmdFSKdemod, 1, "Demodulate graph window as a HID FSK"},
|
||||
{"grid", CmdGrid, 1, "grid x y, overlay grid on graph window, use zero value to turn off either"},
|
||||
{"grid", CmdGrid, 1, "<x> <y> -- overlay grid on graph window, use zero value to turn off either"},
|
||||
{"hexsamples", CmdHexsamples, 0, "<blocks> -- Dump big buffer as hex bytes"},
|
||||
{"hi14alist", CmdHi14alist, 0, "List ISO 14443a history"},
|
||||
{"hi14areader", CmdHi14areader, 0, "Act like an ISO14443 Type A reader"},
|
||||
|
|
|
@ -67,12 +67,6 @@ void ExecCmd(char *cmd)
|
|||
int CommandFinished;
|
||||
int offset = 64;
|
||||
|
||||
void SetGraphGrid(int x, int y)
|
||||
{
|
||||
PlotGridX = x;
|
||||
PlotGridY = y;
|
||||
}
|
||||
|
||||
static void ResizeCommandWindow(void)
|
||||
{
|
||||
int w, h;
|
||||
|
|
|
@ -13,12 +13,12 @@ void ShowGui();
|
|||
void HideGraphWindow(void);
|
||||
void ShowGraphWindow(void);
|
||||
void RepaintGraphWindow(void);
|
||||
void SetGraphGrid(int x, int y);
|
||||
void PrintToScrollback(char *fmt, ...);
|
||||
#define MAX_GRAPH_TRACE_LEN (1024*128)
|
||||
extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
|
||||
extern int GraphTraceLen;
|
||||
extern double CursorScaleFactor;
|
||||
extern int PlotGridX, PlotGridY;
|
||||
extern int CommandFinished;
|
||||
extern int offline;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue