2019-12-15 19:17:00 +00:00
|
|
|
#include "th02/formats/pi.h"
|
|
|
|
|
2019-12-10 07:52:24 +00:00
|
|
|
#define PI_MASK_COUNT 4
|
|
|
|
#define PI_MASK_H 4
|
2020-03-06 23:25:03 +00:00
|
|
|
extern const dots16_t PI_MASKS[PI_MASK_COUNT][PI_MASK_H];
|
2019-12-10 07:52:24 +00:00
|
|
|
|
2020-10-23 17:27:10 +00:00
|
|
|
// Like pi_put_8(), but only displays every second row in the given PI.
|
|
|
|
int pascal pi_put_interlace_8(screen_x_t left, vram_y_t top, int slot);
|
2019-12-15 19:17:00 +00:00
|
|
|
|
2020-10-23 17:27:10 +00:00
|
|
|
// Like pi_put_8(), but only displays the n-th 320x200 [quarter], counted
|
2020-08-20 19:59:45 +00:00
|
|
|
// from the top left, of the PI image in slot #[slot] at ([left], [top]).
|
2020-12-25 15:53:32 +00:00
|
|
|
void pascal pi_put_quarter_8(
|
2020-08-20 19:59:45 +00:00
|
|
|
screen_x_t left, vram_y_t top, int slot, int quarter
|
|
|
|
);
|
2020-12-25 15:53:32 +00:00
|
|
|
|
|
|
|
static const pixel_t PI_QUARTER_W = (PI_W / 2);
|
|
|
|
static const pixel_t PI_QUARTER_H = (PI_H / 2);
|