Lua: Fix type confusion between signed and unsigned
[lsnes.git] / include / lua / halo.hpp
blobe16b860c8c8397d499d624902806ea0b8d240047
1 #ifndef _lua__halo__hpp__included__
2 #define _lua__halo__hpp__included__
4 #include <cstdlib>
5 #include "library/framebuffer.hpp"
7 /**
8 * Render a 1px wide halo around monochrome image.
10 * Parameter pixmap: The pixmap to render halo on. Must be aligned to 32 bytes.
11 * Parameter width: Width of the pixmap. Must be multiple of 32 bytes.
12 * Parameter height: Height of the pixmap.
14 void render_halo(unsigned char* pixmap, size_t width, size_t height);
16 /**
17 * Blit a bitmap to screen.
19 template<bool X> void halo_blit(struct framebuffer::fb<X>& scr, unsigned char* pixmap, size_t width,
20 size_t height, size_t owidth, size_t oheight, uint32_t x, uint32_t y, framebuffer::color& bg,
21 framebuffer::color& fg, framebuffer::color& hl) throw();
23 #endif