Changeset 92 for trunk/gotcha.cpp


Ignore:
Timestamp:
Oct 7, 2020, 5:00:30 AM (5 years ago)
Author:
Gregg Young
Message:

Clean up Gotcha! Quiet's ini file by removing the snapshot entries. #ifdef out some more code from Gotcha! Quiet which is unneeded (setting the size and position of an object window is a useless waste of code)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gotcha.cpp

    r91 r92  
    156156    pset->pForceSaveFile = pset->QueryForceSaveFile();
    157157    pset->bSerialCapture = pset->SerialCapture ();
    158 
     158#ifndef _QUIET_
    159159    // check cmd line args and if "-a" found take screenshot and exit
    160160    if (CheckCmdlineArgs (argc, argv))
     
    168168        exit (0);
    169169    }
    170 
     170#endif
    171171    SetIdlePriority(pset->QueryFlag(SEI_IDLEPRIORITY));
    172172
     
    175175#ifndef _QUIET_
    176176    hwndSnapshot = CreateSnapshotWindow ();
    177 #endif
    178177    SWP swp;
    179178    USHORT us[7];
     
    183182    WinSetWindowPos (hwndFrame, HWND_DESKTOP, swp.x,swp.y, 0,0,
    184183                     SWP_SHOW | SWP_MOVE);
    185 
     184#endif
    186185   
    187186#ifdef _QUIET_
     
    206205    else
    207206        WinShowWindow (hwndSnapshot, TRUE);
    208 #endif
     207
    209208    WinSetWindowPos (hwndFrame, NULLHANDLE, 0,0, 0,0, SWP_SHOW);
    210209    WinSetWindowPos (WinWindowFromID (hwndFrame, FID_CLIENT), NULLHANDLE,
    211210                     0,0, 0,0, SWP_SHOW);
     211#endif
    212212
    213213    g_phelp = new Helper(hwndFrame);
     
    234234    WinQueryWindowPos (hwndSnapshot, &swp);
    235235    pset->SetWindowData (&swp);
    236 #endif
     236
    237237    // save size, etc. of main window
    238238    WinQueryWindowPos (hwndFrame, &swp);
    239239    pset->SetWindowData (&swp, FALSE);
    240 
     240#endif
    241241    // goodbye windows!
    242242#ifndef _QUIET_
Note: See TracChangeset for help on using the changeset viewer.