Skip to content

Commit

Permalink
Merge pull request #25 from cad0gan/master
Browse files Browse the repository at this point in the history
Update...
  • Loading branch information
Azq2 authored Nov 16, 2024
2 parents 32ad462 + d0eec97 commit 869eef0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
10 changes: 6 additions & 4 deletions swilib/include/swilib/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ typedef struct LLIST LLIST;
* */
enum DefaultLgpID {
#ifdef NEWSGOLD
LGP_NULL = 0x7FFFFFFF, /**< Empty LGP */
#else
LGP_NULL = 0x7FFF, /**< Empty LGP */
#endif
LGP_NULL = 0x7FFFFFFF, /**< Empty LGP */
LGP_DOIT_PIC = 0x7FFFC0FB, /**< OK icon */
LGP_CHANGE_PIC = 0x7FFFC10D, /**< Change icon */
LGP_SAVE_PIC = 0x7FFFC113, /**< Save icon */
#else
LGP_NULL = 0x7FFF, /**< Empty LGP */
LGP_DOIT_PIC = 0x4E48, /**< OK icon */
LGP_MENU_PIC = 0x4E4A, /**< Menu icon */
#endif
};

/**
Expand Down
9 changes: 9 additions & 0 deletions swilib/include/swilib/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ __swi_begin(0x1EC)
void FreeDynIcon(int picture)
__swi_end(0x1EC, FreeDynIcon, (picture));


/**
* Get the maximum count of PIT icons.
* @return count
* */
__swi_begin(0x3D9)
int GetPITSize()
__swi_end(0x3D9, GetPITSize, ());

/** @} */

__swilib_end
Expand Down
24 changes: 24 additions & 0 deletions swilib/include/swilib/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,30 @@ __swi_begin(0x80D8)
void *RamMenuAnywhere()
__swi_end(0x80D8, RamMenuAnywhere, ());

/**
* Size of UI header.
* @return pointer to the rect
* */
__swi_begin(0x83D6)
RECT *GetHeaderRECT(void)
__swi_end(0x83D6, GetHeaderRECT, ());

/**
* Size of UI options header.
* @return pointer to the rect
* */
__swi_begin(0x83D7)
RECT *GetOptionsHeaderRect(void)
__swi_end(0x83D7, GetOptionsHeaderRect, ());

/**
* Size of UI main area.
* @return pointer to the rect
* */
__swi_begin(0x83D8)
RECT *GetMainAreaRECT(void)
__swi_end(0x83D8, GetMainAreaRECT, ());

/** @} */

__swilib_end
Expand Down

0 comments on commit 869eef0

Please sign in to comment.