home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- *
- * NAME: viewport.cpp
- *
- * DESCRIPTION: methods for viewport
- *
- * M O D I F I C A T I O N H I S T O R Y
- *
- * when who what
- * -------------------------------------------------------------------
- * 12/02/90 J. Alan Eldridge created
- *
- *********************************************************************/
-
- #include "w.h"
-
- // check if pointing device is in port
- // if so, modify coordinates so they are port relative
-
- int
- viewport::intheport(
- int &y,
- int &x)
- {
- if (y >= yUL && y <= yLR && x >= xUL && x <= xLR) {
- y -= yUL; x-= xUL; return TRUE;
- } else
- return FALSE;
- }
-
-