rnd-20091208-1-src
[rocksndiamonds.git] / src / game_sp / Capture.c
index 96997f679d3fe2847a30915cd0de9125aa5fb1ec..5a71fd0eb68a137b190da77ee098230b7840101b 100644 (file)
@@ -4,7 +4,10 @@
 
 #include "Capture.h"
 
-static char *VB_Name = "CaptureModule";
+#if 0
+
+// static char *VB_Name = "CaptureModule";
+
 // --------------------------------------------------------------------
 // ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 //
@@ -94,7 +97,9 @@ long SelectPalette(long hDC, long hPalette, long bForceBackground);
 long RealizePalette(long hDC);
 long GetWindowDC(long hWnd);
 long GetDC(long hWnd);
+#if 0
 long GetWindowRect(long hWnd, RECT lpRect);
+#endif
 long ReleaseDC(long hWnd, long hDC);
 long GetDesktopWindow();
 
@@ -142,7 +147,9 @@ int SelectPalette(int hDC, int hPalette, int bForceBackground);
 int RealizePalette(int hDC);
 int GetWindowDC(int hWnd);
 int GetDC(int hWnd);
+#if 0
 int GetWindowRect(int hWnd, RECT lpRect);
+#endif
 int ReleaseDC(int hWnd, int hDC);
 int GetDesktopWindow();
 
@@ -209,7 +216,7 @@ Picture CreateBitmapPicture(int hBmp, int hPal)
 
   // Fill Pic with necessary parts.
   {
-    pic.Size = Len(pic);          // Length of structure.
+    pic.Size = sizeof(pic);       // Length of structure.
     pic.Type = vbPicTypeBitmap;   // Type of Picture (bitmap).
     pic.hBmp = hBmp;              // Handle to bitmap.
     pic.hPal = hPal;              // Handle to palette (may be null).
@@ -426,6 +433,8 @@ Picture CaptureClient(Form frmSrc)
   return CaptureClient;
 }
 
+#if 0
+
 // ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 //
 // CaptureActiveWindow
@@ -464,6 +473,8 @@ Picture CaptureActiveWindow()
   return CaptureActiveWindow;
 }
 
+#endif
+
 // ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 
 //
@@ -522,8 +533,11 @@ void PrintPictureToFitPage(Printer Prn, Picture pic)
   }
 
   // Print the picture using the PaintPicture method.
-  Prn_PaintPicture(pic, 0, 0, PrnPicWidth, PrnPicHeight);
+#if 0
+  Prn.PaintPicture(pic, 0, 0, PrnPicWidth, PrnPicHeight);
+#endif
 }
 
 // --------------------------------------------------------------------
 
+#endif