| 1140 | } |
| 1141 | |
| 1142 | bool CreateBmpScanline(tceffect *tce, const char *filename) { |
| 1143 | ASSERT(filename); |
| 1144 | |
| 1145 | tce->bmpinfo.chunk_bmp.pw = tce->bmpinfo.chunk_bmp.ph = 0; |
| 1146 | tce->bmpinfo.bm_handle = bm_AllocLoadFileBitmap(IGNORE_TABLE(filename), 0); |
| 1147 | tce->bmpinfo.temp_bmhandle = BAD_BITMAP_HANDLE; |
| 1148 | if (tce->bmpinfo.bm_handle == -1) { |
| 1149 | tce->bmpinfo.bm_handle = BAD_BITMAP_HANDLE; |
| 1150 | mprintf(0, "Unable to load bmp '%s'\n", filename); |
| 1151 | } else { |
| 1152 | tce->bmpinfo.temp_bmhandle = bm_AllocBitmap(bm_w(tce->bmpinfo.bm_handle, 0), bm_h(tce->bmpinfo.bm_handle, 0), 0); |
| 1153 | if (tce->bmpinfo.temp_bmhandle == -1) |
| 1154 | tce->bmpinfo.temp_bmhandle = BAD_BITMAP_HANDLE; |
| 1155 | |
| 1156 | // create the chunk bitmap for use |
| 1157 | bm_CreateChunkedBitmap(tce->bmpinfo.bm_handle, &tce->bmpinfo.chunk_bmp); |
| 1158 | } |
| 1159 | return true; |
| 1160 | } |
| 1161 | |
| 1162 | bool CreateBmpInvert(tceffect *tce, const char *filename) { |
| 1163 | ASSERT(filename); |
no test coverage detected