home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
AEWIN100.ZIP
/
CONTRIB
/
WINDOWS
/
SRC
/
VIEWPORT.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-27
|
772b
|
31 lines
/**********************************************************************
*
* 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;
}