6 Plst::Plst (Stack
*stackIn
, int id
) {
9 file
= new File (stack
, Resource::PLST
, id
);
10 count
= file
->readUShort (0);
14 Plst::get (int index
, uint16_t *bmpId
, uint16_t *left
, uint16_t *top
, uint16_t *right
, uint16_t *bottom
) {
16 for (int=0; i
<count
; i
++) {
17 if (index
== file
->readUShort (2 + 12*i
)) {
19 *bmpId
= file
->readUShort (2 + 12*i
+ 2);
20 *left
= file
->readUShort (2 + 12*i
+ 4);
21 *top
= file
->readUShort (2 + 12*i
+ 6);
22 *right
= file
->readUShort (2 + 12*i
+ 8);
23 *bottom
= file
->readUShort (2 + 12*i
+ 10);
30 Plst::draw (int record
, Framebuffer
*buffer
) {