26 #define UNLV_EXT ".uzn" // unlv zone file 46 BLOCK_IT block_it = blocks;
49 if ((pdfp = fopen (name.
string (),
"rb")) ==
nullptr) {
52 while (
tfscanf(pdfp,
"%d %d %d %d %*s", &x, &y, &width, &height) >= 4) {
55 (int16_t) x, (int16_t) (ysize - y - height),
56 (int16_t) (x + width), (int16_t) (ysize - y));
58 block_it.add_to_end (block);
66 BLOCK_IT block_it(blocks);
68 block_it.add_to_end(block);
int tfscanf(FILE *stream, const char *format,...)
const char * string() const
bool read_unlv_file(STRING name, int32_t xsize, int32_t ysize, BLOCK_LIST *blocks)
void FullPageBlock(int width, int height, BLOCK_LIST *blocks)