mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
modified for rtems
This commit is contained in:
+1
-1
@@ -1701,7 +1701,7 @@ typedef struct _GAL_Rect {
|
||||
#endif
|
||||
|
||||
/* Commonly used definitions */
|
||||
#if !defined(__NOUNIX__) || defined (__ECOS__)
|
||||
#if !defined(__NOUNIX__) || defined (__ECOS__) || defined (__RTEMS__)
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
|
||||
+14
-6
@@ -2734,8 +2734,9 @@ MG_EXPORT HCURSOR GUIAPI GetCurrentCursor (void);
|
||||
#define LoadCursorFromFile(filename) (do_nothing(), 0)
|
||||
#define CreateCursor(x, y, w, h, ANDbs, XORbs, cr) (do_nothing(), 0)
|
||||
#define DestroyCursor(hcsr) (do_nothing(), 0)
|
||||
#define GetSystemCursor(csrid) (do_nothing(), 0)
|
||||
// #define GetSystemCursor(csrid) (do_nothing(), 0)
|
||||
#define GetCurrentCursor() (do_nothing(), 0)
|
||||
static inline HCURSOR GetSystemCursor(int csrid) { return (HCURSOR) 0;}
|
||||
#endif /* _MGHAVE_CURSOR */
|
||||
|
||||
#define MAX_SYSCURSORINDEX 22
|
||||
@@ -2909,10 +2910,16 @@ MG_EXPORT void GUIAPI SetCursorPos (int x, int y);
|
||||
MG_EXPORT HCURSOR GUIAPI GetDefaultCursor (void);
|
||||
|
||||
#else
|
||||
#define SetCursorEx(hcsr, set_def) (do_nothing(), 0)
|
||||
#define SetCursor(hcsr) (do_nothing(), 0)
|
||||
#define SetDefaultCursor(hcsr) (do_nothing(), 0)
|
||||
#define GetDefaultCursor() (do_nothing(), 0)
|
||||
// #define SetCursorEx(hcsr, set_def) (do_nothing(), (HCURSOR)0)
|
||||
// #define SetCursor(hcsr) (do_nothing(), (HCURSOR)0)
|
||||
// #define SetDefaultCursor(hcsr) (do_nothing(), (HCURSOR)0)
|
||||
// #define GetDefaultCursor() (do_nothing(), (HCURSOR)0)
|
||||
|
||||
static inline HCURSOR SetCursorEx(HCURSOR hcsr, BOOL set_def) { return (HCURSOR) 0;}
|
||||
static inline HCURSOR SetCursor(HCURSOR hcsr) { return (HCURSOR) 0;}
|
||||
static inline HCURSOR SetDefaultCursor(HCURSOR hcsr) { return (HCURSOR) 0;}
|
||||
static inline HCURSOR GetDefaultCursor(void) { return (HCURSOR) 0;}
|
||||
|
||||
#endif /* _MGHAVE_CURSOR */
|
||||
|
||||
#ifdef _MGHAVE_CURSOR
|
||||
@@ -2933,7 +2940,8 @@ MG_EXPORT HCURSOR GUIAPI GetDefaultCursor (void);
|
||||
*/
|
||||
MG_EXPORT int GUIAPI ShowCursor (BOOL fShow);
|
||||
#else
|
||||
#define ShowCursor(fShow) (do_nothing(), 0)
|
||||
// #define ShowCursor(fShow) (do_nothing(), (HCURSOR)0)
|
||||
static inline int ShowCursor(BOOL fShow) {return 0;}
|
||||
#endif /* _MGHAVE_CURSOR */
|
||||
|
||||
/** @} end of cursor_fns */
|
||||
|
||||
Reference in New Issue
Block a user