|
@@ -38,9 +38,6 @@ BANKREF(gbprinter)
|
38
|
38
|
#define PRN_BUSY_TIMEOUT (2 * 60) // 2s
|
39
|
39
|
#define PRN_PRINT_TIMEOUT (20 * 60) // 20s
|
40
|
40
|
|
41
|
|
-#define PRN_PALETTE_NORMAL 0b11100100u
|
42
|
|
-#define PRN_PALETTE_INV 0b00011011u
|
43
|
|
-
|
44
|
41
|
#define PRN_NO_MARGINS 0x00
|
45
|
42
|
#define PRN_FINAL_MARGIN 0x03
|
46
|
43
|
|
|
@@ -172,7 +169,7 @@ static void win_str_helper(const char *s, uint8_t y_pos) {
|
172
|
169
|
win_str_center(line_buff, y_pos, 0);
|
173
|
170
|
}
|
174
|
171
|
|
175
|
|
-enum PRN_STATUS gbprinter_screenshot(uint8_t win) BANKED {
|
|
172
|
+enum PRN_STATUS gbprinter_screenshot(uint8_t win, uint8_t palette) BANKED {
|
176
|
173
|
static uint8_t tile_buff[2 * DEVICE_SCREEN_WIDTH * 16];
|
177
|
174
|
static struct prn_config params;
|
178
|
175
|
enum PRN_STATUS r = PRN_STATUS_OK;
|
|
@@ -222,7 +219,7 @@ enum PRN_STATUS gbprinter_screenshot(uint8_t win) BANKED {
|
222
|
219
|
|
223
|
220
|
params.sheets = 1;
|
224
|
221
|
params.margins = PRN_FINAL_MARGIN;
|
225
|
|
- params.palette = PRN_PALETTE_NORMAL;
|
|
222
|
+ params.palette = palette;
|
226
|
223
|
params.exposure = PRN_EXPO_DARK;
|
227
|
224
|
|
228
|
225
|
printer_send_command(PRN_CMD_PRINT, (uint8_t *)¶ms, sizeof(struct prn_config));
|