Diff for /xmil/win9x/scrnmng.cpp between versions 1.7 and 1.9

version 1.7, 2004/08/08 09:12:06 version 1.9, 2004/08/17 12:30:41
Line 241  static void paletteinit(void) { Line 241  static void paletteinit(void) {
         hdc = GetDC(hWndMain);          hdc = GetDC(hWndMain);
         GetSystemPaletteEntries(hdc, 0, 256, ddraw.pal);          GetSystemPaletteEntries(hdc, 0, 256, ddraw.pal);
         ReleaseDC(hWndMain, hdc);          ReleaseDC(hWndMain, hdc);
         for (i=0; i<XMILPAL_TOTAL; i++) {          for (i=0; i<XMILPAL_USE; i++) {
                 ddraw.pal[i + START_PAL].peFlags = PC_RESERVED | PC_NOCOLLAPSE;                  ddraw.pal[i + START_PAL].peFlags = PC_RESERVED | PC_NOCOLLAPSE;
         }          }
         for (i=0; i<4; i++) {          for (i=0; i<4; i++) {
Line 258  static void paletteinit(void) { Line 258  static void paletteinit(void) {
   
 static void paletteset(void) {  static void paletteset(void) {
   
         int             i;          UINT    i;
   
         if ((ddraw.palette != NULL) && (xm_palettes)) {          if ((ddraw.palette != NULL) && (xmil_palettes)) {
                 for (i=0; i<xm_palettes; i++) {                  for (i=0; i<xmil_palettes; i++) {
                         ddraw.pal[i+START_PAL].peRed = x1n_pal32[i].p.r;                          ddraw.pal[i+START_PAL].peRed = xmil_pal32[i].p.r;
                         ddraw.pal[i+START_PAL].peBlue = x1n_pal32[i].p.b;                          ddraw.pal[i+START_PAL].peBlue = xmil_pal32[i].p.b;
                         ddraw.pal[i+START_PAL].peGreen = x1n_pal32[i].p.g;                          ddraw.pal[i+START_PAL].peGreen = xmil_pal32[i].p.g;
                 }                  }
                 ddraw.palette->SetEntries(0, START_PAL, xm_palettes,                  ddraw.palette->SetEntries(0, START_PAL, xmil_palettes,
                                                                                                         &ddraw.pal[START_PAL]);                                                                                                          &ddraw.pal[START_PAL]);
         }          }
 }  }
Line 741  void scrnmng_dispclock(void) { Line 741  void scrnmng_dispclock(void) {
   
         DDSURFACEDESC   dest;          DDSURFACEDESC   dest;
   
         if ((ddraw.clocksurf) && (dclock_disp())) {          if ((ddraw.clocksurf) &&
                   (ddraw.scrn.top >= DCLOCK_Y) && (dclock_disp())) {
                 dclock_make();                  dclock_make();
                 ZeroMemory(&dest, sizeof(dest));                  ZeroMemory(&dest, sizeof(dest));
                 dest.dwSize = sizeof(dest);                  dest.dwSize = sizeof(dest);
Line 755  void scrnmng_dispclock(void) { Line 756  void scrnmng_dispclock(void) {
                         ddraw.clocksurf->Unlock(NULL);                          ddraw.clocksurf->Unlock(NULL);
                 }                  }
                 if (ddraw.primsurf->BltFast(640 - DCLOCK_X - 4,                  if (ddraw.primsurf->BltFast(640 - DCLOCK_X - 4,
                                                                         480 - DCLOCK_Y - 8,                                                                          ddraw.height - DCLOCK_Y,
                                                                         ddraw.clocksurf, (RECT *)&rectclk,                                                                          ddraw.clocksurf, (RECT *)&rectclk,
                                                                         DDBLTFAST_WAIT) == DDERR_SURFACELOST) {                                                                          DDBLTFAST_WAIT) == DDERR_SURFACELOST) {
                         ddraw.primsurf->Restore();                          ddraw.primsurf->Restore();

Removed from v.1.7  
changed lines
  Added in v.1.9


RetroPC.NET-CVS <cvs@retropc.net>