1 /* $Id: RecordDummy.c,v 5.0 2001/04/07 20:00:59 dik Exp $
2  *
3  * XPilot, a multiplayer gravity war game.  Copyright (C) 1991-2001 by
4  *
5  *      Bj�rn Stabell        <bjoern@xpilot.org>
6  *      Ken Ronny Schouten   <ken@xpilot.org>
7  *      Bert Gijsbers        <bert@xpilot.org>
8  *      Dick Balaska         <dick@xpilot.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23  */
24 
25 // RecordDummy.c
26 // Used by Windows.
27 // Dummy up the recording of xpilot sessions
28 // cause i don't feel like dealing w/it.
29 
30 #include "../../common/NT/winX.h"
31 #include "../record.h"
32 
33 int			recording = False;	/* Are we recording or not. */
34 
35 extern	void paintItemSymbol(unsigned char type, Drawable drawable, GC mygc, int x, int y, int color);
36 
Dummy_newFrame(void)37 static void Dummy_newFrame(void) {}
Dummy_endFrame(void)38 static void Dummy_endFrame(void) {}
39 
40 /*
41  * X windows drawing
42  */
43 static struct recordable_drawing Xdrawing = {
44     Dummy_newFrame,
45     Dummy_endFrame,
46     XDrawArc,
47     XDrawLines,
48     XDrawLine,
49     XDrawRectangle,
50     XDrawString,
51     XFillArc,
52     XFillPolygon,
53     paintItemSymbol,
54     XFillRectangle,
55     XFillRectangles,
56     XDrawArcs,
57     XDrawSegments,
58     XSetDashes,
59 };
60 
61 /*
62  * Publicly accessible drawing routines.
63  * This is either a copy of Xdrawing or of Rdrawing.
64  */
65 struct recordable_drawing rd;
66 
67 
68 /*
69  * Store the name of the file where the user
70  * wants recordings to be written to.
71  */
Record_init(char * filename)72 void Record_init(char *filename)
73 {
74     rd = Xdrawing;
75     // if (filename != NULL && filename[0] != '\0') {
76 	// record_filename = strdup(filename);
77     // }
78 }
79 
Record_cleanup(void)80 void Record_cleanup(void)
81 {
82 }
83 
Record_size(void)84 long Record_size(void)
85 {
86     return (0L);
87 }
88 
Record_toggle(void)89 void Record_toggle(void)
90 {
91 }
92