--- q_a/samples/streblt/track.c 2018/08/09 18:29:19 1.1 +++ q_a/samples/streblt/track.c 2018/08/09 18:29:46 1.1.1.2 @@ -1,9 +1,18 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + /**************************************************************************\ * track.c -- support for direct manipulation of parallelogram object. -* \**************************************************************************/ -#define STRICT #include #include #include "track.h" @@ -64,6 +73,7 @@ PTrackObject doTrackObject(PTrackObject /* initialize the HDC and other fields. */ pto->hdc = GetDC (hwnd); + SetGraphicsMode (pto->hdc, GM_ADVANCED); SetROP2(pto->hdc, R2_NOT); SelectObject (pto->hdc, GetStockObject (NULL_BRUSH)); pto->Mode = TMNONE;