2020-03-19 13:12:13 +00:00
|
|
|
#include "th01/formats/ptn.hpp"
|
|
|
|
|
2020-08-20 19:59:45 +00:00
|
|
|
void ptn_copy_8_0_to_1(screen_x_t left, vram_y_t top)
|
2020-03-19 13:12:13 +00:00
|
|
|
{
|
|
|
|
planar_t(PTN_W) row;
|
|
|
|
unsigned int vram_offset = vram_offset_shift(left, top);
|
2020-08-21 18:13:08 +00:00
|
|
|
for(pixel_t y = 0; y < PTN_H; y++) {
|
2020-03-19 13:12:13 +00:00
|
|
|
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);
|
|
|
|
}
|