shithub: cstory

Download patch

ref: 0324d1532b185fd149a809ab24ff9bb0554884eb
parent: 4078182ee8750bb3c2038521635494a4c6e5bc4c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 10 17:29:25 EDT 2020

Apply SurfaceID type

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -635,7 +635,7 @@
 	backbuffer->Blt(&rcSet, surf[surf_no], &rcWork, DDBLT_WAIT, NULL);
 }
 
-void Surface2Surface(int x, int y, const RECT *rect, int to, int from)
+void Surface2Surface(int x, int y, const RECT *rect, SurfaceID to, SurfaceID from)
 {
 	static RECT rcWork;
 	static RECT rcSet;
--- a/src/Draw.h
+++ b/src/Draw.h
@@ -54,7 +54,7 @@
 void BackupSurface(SurfaceID surf_no, const RECT *rect);
 void PutBitmap3(const RECT *rcView, int x, int y, const RECT *rect, SurfaceID surf_no);
 void PutBitmap4(const RECT *rcView, int x, int y, const RECT *rect, SurfaceID surf_no);
-void Surface2Surface(int x, int y, const RECT *rect, int to, int from);
+void Surface2Surface(int x, int y, const RECT *rect, SurfaceID to, SurfaceID from);
 unsigned long GetCortBoxColor(COLORREF col);
 void CortBox(const RECT *rect, unsigned long col);
 void CortBox2(const RECT *rect, unsigned long col, SurfaceID surf_no);