Remove global HINSTANCE

This commit is contained in:
kichikuou
2016-04-02 21:31:28 +09:00
parent f51f224fe4
commit e988478d4d
5 changed files with 6 additions and 9 deletions
+3 -3
View File
@@ -6,8 +6,6 @@
#include "ags.h"
extern HINSTANCE g_hinst;
void AGS::load_cursor(int page)
{
// カーソルCGをロードする
@@ -28,6 +26,8 @@ void AGS::load_cursor(int page)
cg_dest_y = j_y;
dest_screen = dest;
HINSTANCE hinst = (HINSTANCE)GetModuleHandle(NULL);
// フォントの生成
for(int i = 0; i < 10; i++) {
// パターン読み込み
@@ -78,7 +78,7 @@ void AGS::load_cursor(int page)
if(hCursor[i]) {
DestroyCursor(hCursor[i]);
}
hCursor[i] = CreateCursor(g_hinst, 2, 2, 32, 32, amask, xmask);
hCursor[i] = CreateCursor(hinst, 2, 2, 32, 32, amask, xmask);
}
}