| 221 | } |
| 222 | |
| 223 | int ui_GetBitmapWidth(UIBitmapItem *bi) { |
| 224 | if (bi->is_chunked()) { |
| 225 | chunked_bitmap *chunk = bi->get_chunked_bitmap(); |
| 226 | return chunk->pw; |
| 227 | } else { |
| 228 | return bm_w(bi->get_bitmap(), 0); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | int ui_GetBitmapHeight(UIBitmapItem *bi) { |
| 233 | if (bi->is_chunked()) { |
no test coverage detected