ReC98/th01/formats/ptn_0to1.cpp

14 lines
391 B
C++

#include "th01/formats/ptn.hpp"
void ptn_copy_8_0_to_1(int left, int top)
{
planar_t(PTN_W) row;
unsigned int vram_offset = vram_offset_shift(left, top);
for(int y = 0; y < PTN_H; y++) {
graph_accesspage_func(0); VRAM_SNAP_PLANAR(row, vram_offset, PTN_W);
graph_accesspage_func(1); VRAM_PUT_PLANAR(vram_offset, row, PTN_W);
vram_offset += ROW_SIZE;
}
graph_accesspage_func(0);
}