Browse Source

Unify the function interface, avoid lto-type-mismatch

pre-master-46
Holger Vogt 2 years ago
parent
commit
ac7584bcf6
  1. 4
      src/frontend/wdisp/winprint.c
  2. 2
      src/frontend/wdisp/winprint.h

4
src/frontend/wdisp/winprint.c

@ -378,7 +378,7 @@ int WPRINT_DrawLine(int x1, int y1, int x2, int y2, bool isgrid)
}
int WPRINT_Arc(int x0, int y0, int radius, double theta, double delta_theta)
int WPRINT_Arc(int x0, int y0, int radius, double theta, double delta_theta, bool isgrid)
/*
* Notes:
* Draws an arc of <radius> and center at (x0,y0) beginning at
@ -397,6 +397,8 @@ int WPRINT_Arc(int x0, int y0, int radius, double theta, double delta_theta)
double dx0;
double dy0;
NG_IGNORE(isgrid);
if (!currentgraph) return 0;
pd = pPrintData(currentgraph);
if (!pd) return 0;

2
src/frontend/wdisp/winprint.h

@ -12,7 +12,7 @@ int WPRINT_NewViewport( GRAPH * graph);
int WPRINT_Close(void);
int WPRINT_Clear(void);
int WPRINT_DrawLine(int x1, int y1, int x2, int y2, bool isgrid);
int WPRINT_Arc(int x0, int y0, int radius, double theta, double delta_theta);
int WPRINT_Arc(int x0, int y0, int radius, double theta, double delta_theta, bool isgrid);
int WPRINT_Text( char * text, int x, int y, int degrees);
int WPRINT_DefineColor(int colorid, double red, double green, double blue);
int WPRINT_DefineLinestyle(int num, int mask);

Loading…
Cancel
Save