int plTranslateCursor(PLGraphicsIn *plg) { int window; c_plcalc_world(plg->dX, plg->dY, &plg->wX, &plg->wY, (PLINT *) &window); if ( window >= 0 ) { plg->subwindow = window; return 1; } else return 0; }
void WINAPI plcalc_world(PLFLT rx, PLFLT ry, PLFLT *wx, PLFLT *wy, PLINT *window) { c_plcalc_world(rx, ry, wx, wy, window); }