X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FCapture.c;h=5a71fd0eb68a137b190da77ee098230b7840101b;hb=315fd934929b6f1dbb70a6ae3cda097cdbc7d9c0;hp=96997f679d3fe2847a30915cd0de9125aa5fb1ec;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/Capture.c b/src/game_sp/Capture.c index 96997f67..5a71fd0e 100644 --- a/src/game_sp/Capture.c +++ b/src/game_sp/Capture.c @@ -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