improve plot window handling

This commit is contained in:
h_vogt 2009-01-11 00:28:14 +00:00
parent 95a68aae48
commit f9630b7d9f
1 changed files with 4 additions and 3 deletions

View File

@ -153,7 +153,7 @@ int WIN_Init( )
/* (attach to window) */
static GRAPH * pGraph( HWND hwnd)
{
return (GRAPH *) GetWindowLong( hwnd, 0);
return (GRAPH *) GetWindowLong( hwnd, 0);
}
/* return line style for plotting */
@ -375,7 +375,7 @@ LRESULT CALLBACK PlotWindowProc( HWND hwnd,
/* start plot loop with argument buf */
case WM_RBUTTONUP:
{
GRAPH * gr = pGraph( hwnd);
GRAPH * gr = pGraph( hwnd);
InvalidateRect (hwnd, NULL, TRUE) ;
xe = LOWORD (lParam);
ye = HIWORD (lParam);
@ -392,7 +392,8 @@ LRESULT CALLBACK PlotWindowProc( HWND hwnd,
if (!eq(plot_cur->pl_typename, buf2)) {
(void) sprintf(buf,
"setplot %s; %s xlimit %e %e ylimit %e %e; setplot $curplot\n",
// "setplot %s; %s xlimit %e %e ylimit %e %e; setplot $curplot\n",
"setplot %s; %s xlimit %e %e ylimit %e %e\n",
buf2, gr->commandline, fx0, fxe, fy0, fye);
} else {
(void) sprintf(buf, "%s xlimit %e %e ylimit %e %e\n",