Browse Source

Revert ABORTPROC to bool, where appropriate

pre-master-46
Holger Vogt 1 year ago
parent
commit
b7092ff19b
  1. 6
      src/frontend/wdisp/winprint.c
  2. 2
      src/frontend/wdisp/winprint.h

6
src/frontend/wdisp/winprint.c

@ -101,7 +101,7 @@ void WPRINT_PrintInit(HWND hwnd)
}
/* Abort-Procedur zum Drucken */
ABORTPROC CALLBACK WPRINT_Abort(HDC hdc, int iError)
bool CALLBACK WPRINT_Abort(HDC hdc, int iError)
{
NG_IGNORE(hdc);
NG_IGNORE(iError);
@ -110,7 +110,7 @@ ABORTPROC CALLBACK WPRINT_Abort(HDC hdc, int iError)
WaitForIdle();
/* Warten */
return (ABORTPROC)TRUE;
return TRUE;
}
@ -225,7 +225,7 @@ int WPRINT_Init(void)
}
/* Abort-Prozedur setzen */
SetAbortProc( PrinterDC, WPRINT_Abort);
SetAbortProc( PrinterDC, (ABORTPROC)WPRINT_Abort);
}
/* fertig */
return (0);

2
src/frontend/wdisp/winprint.h

@ -6,7 +6,7 @@
#define ngspice_WINPRINT_H
void WPRINT_PrintInit(HWND hwnd);
ABORTPROC CALLBACK WPRINT_Abort( HDC hdc, int iError);
bool CALLBACK WPRINT_Abort( HDC hdc, int iError);
int WPRINT_Init(void);
int WPRINT_NewViewport( GRAPH * graph);
int WPRINT_Close(void);

Loading…
Cancel
Save