diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2017-10-02 22:09:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 22:09:29 -0400 |
commit | 2701191a769784640d6a4fb819ae48272d01eb75 (patch) | |
tree | 6e6ebcf4bc02c2528e58ddcbe699b1d0601a50e1 /include/window.h | |
parent | 4cf115000289d10de3408e752b37128446dd261c (diff) | |
parent | 0fe97e838eab14723a4a38a773e2bc4d1494241e (diff) |
Merge branch 'master' into unk_text_util_2
Diffstat (limited to 'include/window.h')
-rw-r--r-- | include/window.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/window.h b/include/window.h index 20e5fefa3..4e814ebc6 100644 --- a/include/window.h +++ b/include/window.h @@ -24,6 +24,17 @@ struct WindowTemplate u16 baseBlock; }; +#define DUMMY_WIN_TEMPLATE \ +{ \ + 0xFF, \ + 0, \ + 0, \ + 0, \ + 0, \ + 0, \ + 0, \ +} + struct Window { struct WindowTemplate window; @@ -44,7 +55,7 @@ void PutWindowRectTilemap(u8 windowId, u8 x, u8 y, u8 width, u8 height); void BlitBitmapToWindow(u8 windowId, u8 *pixels, u16 x, u16 y, u16 width, u16 height); void BlitBitmapRectToWindow(u8 windowId, const u8 *pixels, u16 srcX, u16 srcY, u16 srcWidth, int srcHeight, u16 destX, u16 destY, u16 rectWidth, u16 rectHeight); void FillWindowPixelRect(u8 windowId, u8 fillValue, u16 x, u16 y, u16 width, u16 height); -void CopyToWindowPixelBuffer(u8 windowId, u8 *src, u16 size, u16 tileOffset); +void CopyToWindowPixelBuffer(u8 windowId, const u8 *src, u16 size, u16 tileOffset); void FillWindowPixelBuffer(u8 windowId, u8 fillValue); void ScrollWindow(u8 windowId, u8 direction, u8 distance, u8 fillValue); void CallWindowFunction(u8 windowId, void ( *func)(u8, u8, u8, u8, u8, u8)); |