PREVSET.CPP
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
源码类别:

游戏

开发平台:

Visual C++

  1. #include "ray.h"
  2. #include "globals.h"
  3. #include "prevarr.h"
  4. #include "scrconf.h"
  5. BOOL prev_loaded=FALSE;
  6. void Setup_Prev_Arrays() {
  7.    Clear_Prev_Arrays();
  8.    prev_colors=(PUCHAR)NewPtr(Get_Phys_Screen_Width() * sizeof (UCHAR));
  9.    win_tops=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
  10.    win_bottoms=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
  11.    prev_loaded=TRUE;
  12. }
  13. void Clear_Prev_Arrays() {
  14.    if (prev_loaded) {
  15.       DelPtr(prev_colors);
  16.       DelPtr(win_tops);
  17.       DelPtr(win_bottoms);
  18.    }
  19. }