24 #define UNLV_EXT ".uzn"
44 BLOCK_IT block_it = blocks;
47 if ((pdfp = fopen (name.
string (),
"rb")) ==
nullptr) {
50 while (
tfscanf(pdfp,
"%d %d %d %d %*s", &x, &y, &width, &height) >= 4) {
53 static_cast<int16_t
>(x),
static_cast<int16_t
>(ysize - y - height),
54 static_cast<int16_t
>(x + width),
static_cast<int16_t
>(ysize - y));
56 block_it.add_to_end (block);
65 BLOCK_IT block_it(blocks);
66 auto* block =
new BLOCK(
"",
true, 0, 0, 0, 0, width, height);
67 block_it.add_to_end(block);
void FullPageBlock(int width, int height, BLOCK_LIST *blocks)
bool read_unlv_file(STRING name, int32_t xsize, int32_t ysize, BLOCK_LIST *blocks)
int tfscanf(FILE *stream, const char *format,...)
DLLSYM void tprintf(const char *format,...)
const char * string() const