home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
xgalaga-2_0_tar.gz
/
xgalaga-2_0_tar
/
xgalaga-2.0
/
libsprite
/
scale.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-12
|
292b
|
18 lines
#include "allincludes.h"
void
W_TranslatePoints(window, x, y)
int *x, *y;
W_Window window;
{
struct window *win;
win = W_Void2Window(window);
if (win->type == WIN_TEXT) {
*y = (*y - MENU_PAD) / W_Textheight;
*x = (*x - MENU_PAD) / W_Textwidth;
}
return;
}