summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/zxvid_com.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox/zxvid_com.h')
-rw-r--r--apps/plugins/zxbox/zxvid_com.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/zxvid_com.h b/apps/plugins/zxbox/zxvid_com.h
new file mode 100644
index 0000000000..0483251b96
--- /dev/null
+++ b/apps/plugins/zxbox/zxvid_com.h
@@ -0,0 +1,28 @@
1#ifndef ZXVIDCOMMON_H
2#define ZXVIDCOMMON_H
3#include "zxconfig.h"
4
5#ifdef USE_GRAY
6#include "../lib/gray.h"
7#endif
8
9#include "spscr_p.h"
10#include "spmain.h"
11#include "spperif.h"
12
13#if LCD_HEIGHT >= ZX_HEIGHT && LCD_WIDTH >= ZX_WIDTH
14#define WIDTH LCD_WIDTH
15#define HEIGHT LCD_HEIGHT
16#else
17#define WIDTH 320 /* 256 */
18#define HEIGHT 200 /* 192 */
19#define X_OFF ( (WIDTH - ZX_WIDTH)/2)
20#define Y_OFF ( (HEIGHT - ZX_HEIGHT)/2)
21/* calculate distance (in source) between pixels*/
22#define X_STEP ((ZX_WIDTH<<16) / LCD_WIDTH)
23#define Y_STEP ((ZX_HEIGHT<<16) / LCD_HEIGHT)
24#endif
25
26extern unsigned char image_array [ HEIGHT * WIDTH ];
27
28#endif /* ZXVIDCOMMON_H */