From 4f5cb4051ad244ba9b15a952fc151ad6a54eee3a Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 17 Nov 2018 20:24:01 +0800 Subject: pddrawsf3 fixes --- csrc/font.c | 2 +- csrc/global.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3