Ignore:
Timestamp:
Apr 3, 2001, 10:57:24 PM (24 years ago)
Author:
sandervl
Message:

Don't reset physical palette unless app changed it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2PALSET.CPP

    r5326 r5467  
    1 /* $Id: OS2PALSET.CPP,v 1.10 2001-03-18 21:44:43 mike Exp $ */
     1/* $Id: OS2PALSET.CPP,v 1.11 2001-04-03 20:57:24 sandervl Exp $ */
    22
    33/*
     
    1818#include "os2palset.h"
    1919
     20static BOOL fPhysPaletteChanged = FALSE;
    2021//******************************************************************************
    2122//******************************************************************************
     
    3031 USHORT sel = RestoreOS2FS();
    3132
    32 
    33 
     33  fPhysPaletteChanged = TRUE;
    3434
    3535  hps = WinGetPS(HWND_DESKTOP);
     
    6969 HDC hdc;
    7070
    71  USHORT sel = RestoreOS2FS();
    72 
    73 
     71  if(!fPhysPaletteChanged) {
     72      return; //not necessary
     73  }
     74  USHORT sel = RestoreOS2FS();
    7475
    7576  hps = WinGetPS( HWND_DESKTOP);
Note: See TracChangeset for help on using the changeset viewer.