Copyrect should flag destination texture as dirty, to force it to be
[wine] / programs / clock / winclock.h
1 /*
2  *  Clock (winclock.h)
3  *
4  *  Copyright 1998 by Marcel Baur <mbaur@g26.ethz.ch>
5  *  This file is essentially rolex.c by Jim Peterson.
6  *  Please see my winclock.c and/or his rolex.c for references.
7  *
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23
24  #include <windows.h>
25
26 typedef struct
27 {
28   int StartX,StartY,EndX,EndY;
29   BOOL DontRedraw;
30 } HandData;
31
32 extern HandData OldMinute, OldHour, OldSecond;
33
34 /* function prototypes */
35
36
37 void DrawFace(HDC dc);
38 void DrawHourHand(HDC dc);
39 void DrawMinuteHand(HDC dc);
40 void DrawSecondHand(HDC dc);
41 BOOL UpdateHourHand(HDC dc,int MidX,int MidY,int XExt,int YExt,WORD Pos);
42 BOOL UpdateMinuteHand(HDC dc,int MidX,int MidY,int XExt,int YExt,WORD Pos);
43 BOOL UpdateSecondHand(HDC dc,int MidX,int MidY,int XExt,int YExt,WORD Pos);
44 void Idle(HDC idc);