home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kyūkyoku!! X68000 Emulator
/
X68000Book.dat
/
mac
/
OLS
/
X68000
/
Ko-Window
/
kow142s.lzh
/
corlib
/
defgent.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-25
|
694b
|
38 lines
/* Copyright 1992 H.Ogasawara (COR.) */
#include "corlib.h"
DefGraphicEnt( gra, wp, info )
DefGraphic *gra;
WindowID wp;
EventInfo *info;
{
if( info->option == EventGraphic ){
if( info->x == gra->mode ){
if( gra->sleep ){
gra->sleep= FALSE;
WindowRedraw( wp );
}
}else if( !gra->sleep ){
gra->sleep= TRUE;
WindowRedraw( wp );
}
}else{
if( gra->sleep ){
gra->sleep= FALSE;
WindowSetGraphicMode( gra->mode );
}
if( gra->palet )
DefGraphicPalet( gra );
GposPopAndMove( wp, info );
#if 0
if( info->option == EventPop )
WindowPop( wp );
else
WindowMove( wp, info->x, info->y );
#endif
}
return TRUE;
}