PREVSET.CPP
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- #include "ray.h"
- #include "globals.h"
- #include "prevarr.h"
- #include "scrconf.h"
- BOOL prev_loaded=FALSE;
- void Setup_Prev_Arrays() {
- Clear_Prev_Arrays();
- prev_colors=(PUCHAR)NewPtr(Get_Phys_Screen_Width() * sizeof (UCHAR));
- win_tops=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
- win_bottoms=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
- prev_loaded=TRUE;
- }
- void Clear_Prev_Arrays() {
- if (prev_loaded) {
- DelPtr(prev_colors);
- DelPtr(win_tops);
- DelPtr(win_bottoms);
- }
- }