Returns the format of this bitmap
| 1545 | } |
| 1546 | // Returns the format of this bitmap |
| 1547 | int bm_format(int handle) { |
| 1548 | if (!GameBitmaps[handle].used) { |
| 1549 | Int3(); |
| 1550 | return -1; |
| 1551 | } |
| 1552 | if (GameBitmaps[handle].flags & BF_NOT_RESIDENT) |
| 1553 | if (!bm_MakeBitmapResident(handle)) |
| 1554 | return 0; |
| 1555 | return (GameBitmaps[handle].format); |
| 1556 | } |
no test coverage detected