mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
make sysres_load_system_cursor inline
This commit is contained in:
+10
-3
@@ -60,10 +60,17 @@ extern "C" {
|
||||
/*Load system cursor */
|
||||
#ifdef _MGHAVE_CURSOR
|
||||
HCURSOR __mg_load_cursor_from_res (int i);
|
||||
PCURSOR sysres_load_system_cursor (int i);
|
||||
|
||||
static inline PCURSOR sysres_load_system_cursor (int i) {
|
||||
HCURSOR hCursor;
|
||||
hCursor = __mg_load_cursor_from_res (i);
|
||||
return (PCURSOR)hCursor;
|
||||
}
|
||||
#else
|
||||
#define sysres_load_system_cursor(i) ((PCURSOR)(NULL))
|
||||
#endif
|
||||
static inline PCURSOR sysres_load_system_cursor (int i) {
|
||||
return ((PCURSOR)(NULL));
|
||||
}
|
||||
#endif /* _MGHAVE_CURSOR */
|
||||
|
||||
BOOL sysres_init_inner_resource(void);
|
||||
const char* sysres_get_system_res_path(void);
|
||||
|
||||
Reference in New Issue
Block a user