| 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stdbool.h> |
| 5 | |
| 6 | #define EDOP_MODE_BMP_A_OFS ((7 * 6) * 0) |
| 7 | #define EDOP_MODE_BMP_C_OFS ((7 * 6) * 1) |
| 8 | #define EDOP_MODE_BMP_H_OFS ((7 * 6) * 2) |
| 9 | #define EDOP_MODE_BMP_N_OFS ((7 * 6) * 3) |
| 10 | #define EDOP_MODE_BMP_O_OFS ((7 * 6) * 4) |
| 11 | #define EDOP_MODE_BMP_P_OFS ((7 * 6) * 5) |
| 12 | #define EDOP_MODE_BMP_S_OFS ((7 * 6) * 6) |
| 13 | #define EDOP_MODE_BMP_T_OFS ((7 * 6) * 7) |
| 14 | |
| 15 | // GFX |
| 16 | extern uint32_t iconBMP[1024]; |
| 17 | extern const uint8_t mousePointerBMP[256]; |
| 18 | extern const uint8_t fontBMP[6096]; |
| 19 | |
| 20 | // PACKED GFX |
| 21 | extern const uint8_t aboutScreenPackedBMP[1408]; |
| 22 | extern const uint8_t clearDialogPackedBMP[525]; |
| 23 | extern const uint8_t diskOpScreenPackedBMP[1898]; |
| 24 | extern const uint8_t fix128KChordPackedBMP[110]; |
| 25 | extern const uint8_t fix128KPosPackedBMP[81]; |
| 26 | extern const uint8_t editOpModeCharsPackedBMP[88]; |
| 27 | extern const uint8_t editOpScreen1PackedBMP[1481]; |
| 28 | extern const uint8_t editOpScreen2PackedBMP[1502]; |
| 29 | extern const uint8_t editOpScreen3PackedBMP[1736]; |
| 30 | extern const uint8_t editOpScreen4PackedBMP[1713]; |
| 31 | extern const uint8_t muteButtonsPackedBMP[46]; |
| 32 | extern const uint8_t posEdPackedBMP[1375]; |
| 33 | extern const uint8_t sampleMonitorPackedBMP[441]; |
| 34 | extern const uint8_t samplerVolumePackedBMP[706]; |
| 35 | extern const uint8_t samplerFiltersPackedBMP[933]; |
| 36 | extern const uint8_t samplerScreenPackedBMP[3076]; |
| 37 | extern const uint8_t spectrumVisualsPackedBMP[2217]; |
| 38 | extern const uint8_t tracker128KFixPackedBMP[363]; |
| 39 | extern const uint8_t trackerFramePackedBMP[8337]; |
| 40 | extern const uint8_t samplingBoxPackedBMP[1379]; |
| 41 | |
| 42 | // these are filled/normalized on init, so no const |
| 43 | extern uint32_t vuMeterBMP[480]; |
| 44 | extern uint32_t loopPinsBMP[512]; |
| 45 | extern uint32_t samplingPosBMP[64]; |
| 46 | extern uint32_t analyzerColorsRGB24[36]; |
| 47 | extern uint32_t patternCursorBMP[154]; |
| 48 | extern uint32_t *editOpScreen1BMP; |
| 49 | extern uint32_t *editOpScreen2BMP; |
| 50 | extern uint32_t *editOpScreen3BMP; |
| 51 | extern uint32_t *editOpScreen4BMP; |
| 52 | extern uint32_t *spectrumVisualsBMP; |
| 53 | extern uint32_t *posEdBMP; |
| 54 | extern uint32_t *diskOpScreenBMP; |
| 55 | extern uint32_t *samplerVolumeBMP; |
| 56 | extern uint32_t *samplerFiltersBMP; |
| 57 | extern uint32_t *samplerScreenBMP; |
| 58 | extern uint32_t *trackerFrameBMP; |
| 59 | extern uint32_t *aboutScreenBMP; |
| 60 | extern uint32_t *muteButtonsBMP; |
| 61 | extern uint32_t *editOpModeCharsBMP; |
| 62 | extern uint32_t *sampleMonitorBMP; |
| 63 | extern uint32_t *samplingBoxBMP; |
| 64 | |
| 65 | // fix-bitmaps for 128K sample mode |
| 66 | extern uint32_t *fix128KTrackerBMP; |
| 67 | extern uint32_t *fix128KPosBMP; |
| 68 | extern uint32_t *fix128KChordBMP; |
| 69 | |
| 70 | bool unpackBMPs(void); |
| 71 | void createBitmaps(void); |
| 72 | void freeBMPs(void); |