54 std::vector<uint8_t>& current_gfx16,
55 std::vector<uint8_t>& tiles_bg1_buffer,
56 std::vector<uint8_t>& tiles_bg2_buffer,
66 if (xx < 0x39 && yy < 0x39 && xx >= 0 && yy >= 0) {
68 for (
auto yl = 0; yl < 8; yl++) {
69 for (
auto xl = 0; xl < 4; xl++) {
84 int tx = ((ti.
id_ / 0x10) * 0x200) +
85 ((ti.
id_ - ((ti.
id_ / 0x10) * 0x10)) * 4);
86 auto pixel = current_gfx16[tx + (yl * 0x40) + xl];
91 ((xx / 8) * 8) + ((yy / 8) * 0x200) + ((mx * 2) + (my * 0x40));
93 (uint8_t)((pixel & 0x0F) + ti.
palette_ * 0x10);
95 (uint8_t)(((pixel >> 4) & 0x0F) + ti.
palette_ * 0x10);
void DrawTile(gfx::Tile16 t, int xx, int yy, std::vector< uint8_t > ¤t_gfx16, std::vector< uint8_t > &tiles_bg1_buffer, std::vector< uint8_t > &tiles_bg2_buffer, ushort tile_under=0xFFFF)