clip in fill
This commit is contained in:
parent
48ac8d08ac
commit
1afd56af30
|
@ -1225,7 +1225,9 @@ static int luaB_fill_sprite(lua_State *L) {
|
|||
if (h == -1)
|
||||
h = gfx_img_h(d) - 2 * yoff;
|
||||
game_pict_modify(d);
|
||||
gfx_clip(game_theme.xoff, game_theme.yoff, game_theme.w - 2*game_theme.xoff, game_theme.h - 2*game_theme.yoff);
|
||||
gfx_img_fill(d, x + xoff, y + yoff, w, h, col);
|
||||
gfx_noclip();
|
||||
lua_pushboolean(L, 1);
|
||||
return 1;
|
||||
}
|
||||
|
|
Reference in a new issue