summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-11-17 20:24:01 +0800
committerIru Cai <mytbk920423@gmail.com>2018-11-17 20:33:25 +0800
commit4f5cb4051ad244ba9b15a952fc151ad6a54eee3a (patch)
treeca1784a7b3cd80b2cbf34174cdb0b89e4435f764
parenta55929ccce0e54cb97f372016452c225c1760875 (diff)
downloadrich4-4f5cb4051ad244ba9b15a952fc151ad6a54eee3a.tar.xz
pddrawsf3 fixes
-rw-r--r--csrc/font.c2
-rw-r--r--csrc/global.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/csrc/font.c b/csrc/font.c
index 76ada0a..6e86ee8 100644
--- a/csrc/font.c
+++ b/csrc/font.c
@@ -345,7 +345,7 @@ void draw_some_text(struct graph_st *gg, const char *str, int a3, int a4, int a5
}
}
fcn.004561be(&gst_4762e8, fmt_dim1.left, fmt_dim1.top, width, height, 0);
- IDirectDrawSurface_Unlock(NULL);
+ IDirectDrawSurface_Unlock(pddrawsf3, NULL);
}
void deinit_font()
diff --git a/csrc/global.h b/csrc/global.h
index 307e338..f62f40e 100644
--- a/csrc/global.h
+++ b/csrc/global.h
@@ -13,6 +13,7 @@ extern IDirectDraw *pddraw; // 0x0048a0d8
extern DDSURFACEDESC sfdesc1; // 0x0048a068
extern IDirectDrawSurface *pddrawsf1; // 0x0048a0dc
extern IDirectDrawSurface *pddrawsf2; // 0x0048a0e0
+extern IDirectDrawSurface *pddrawsf3; // 0x004762cc
extern int mkf_data; // 0x48a0e4
extern int mkf_speaking; // 0x48a054