mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-03 20:38:13 +03:00
Remove global HINSTANCE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user