rnd-20100207-1-src
[rocksndiamonds.git] / src / game_sp / vb_types.h
index ae6ca089d73427d0d5e10395d6a5b2090082195c..0f6d1b88112157690d3a38590b4c7a360d71c36a 100644 (file)
@@ -34,7 +34,7 @@ typedef struct
   int top;
   int right;
   int bottom;
-} RECT;
+} MyRECT;
 #define HAS_RECT
 #endif
 
@@ -105,9 +105,9 @@ typedef struct
   boolean (*isLost)(void);
   void (*GetSurfaceDesc)(DDSURFACEDESC2);
   void (*SetClipper)(DirectDrawClipper);
-  // long (*Blt)(RECT, DirectDrawSurface7, RECT, int);
-  long (*Blt)(RECT, void *, RECT, int);
-  void (*BltColorFill)(RECT, int);
+  // long (*Blt)(MyRECT, DirectDrawSurface7, MyRECT, int);
+  long (*Blt)(MyRECT, void *, MyRECT, int);
+  void (*BltColorFill)(MyRECT, int);
 } DirectDrawSurface7;
 
 typedef struct
@@ -124,6 +124,8 @@ typedef struct
   int lFlags;
 } DSBUFFERDESC;
 
+#if 0
+
 typedef struct
 {
   int nFormatTag;
@@ -150,9 +152,11 @@ typedef struct
 {
   DirectDraw7 (*DirectDrawCreate)(char *);
   DirectSound (*DirectSoundCreate)(char *);
-  void (*GetWindowRect)(long, RECT);
+  void (*GetWindowRect)(long, MyRECT);
 } DirectX7;
 
+#endif
+
 typedef struct
 {
   int Left;
@@ -164,7 +168,7 @@ typedef struct
 {
   void (*DelayMS)(long, boolean);
   double (*TickDiffUS)(double);
-  double TickNow;
+  double (*TickNow)();
 } TickCountObject;
 
 typedef struct
@@ -214,7 +218,9 @@ typedef struct
 {
   int DestXOff;
   int DestYOff;
+  void *Surface;
 
+  void (*Cls)();
   void (*Blt)();
   void (*ScrollTo)(int, int);
   void (*ScrollTowards)(int, int, double);
@@ -224,7 +230,14 @@ typedef struct
 
 typedef struct
 {
+  int DestXOff;
+  int DestYOff;
+  void *DestinationSurface;
+  void *Surface;
+
+  void (*Cls)();
   void (*BltEx)(int, int, int);
+  void (*BltImg)(int, int, int, int);
 } DDSpriteBuffer;
 
 typedef struct
@@ -279,4 +292,14 @@ typedef struct
   boolean Checked;
 } menBorderObject;
 
+typedef struct
+{
+  boolean Checked;
+} menPanelObject;
+
+typedef struct
+{
+  boolean Checked;
+} menAutoScrollObject;
+
 #endif /* VB_TYPES_H */