New makefile solution: A single invocation of 'make' to build the entire tree. Fully...
[kugel-rb.git] / apps / plugins / zxbox / zxvid_com.h
blob1e23ca03e32bf141dad0c240934f9f476f449e6c
1 #ifndef ZXVIDCOMMON_H
2 #define ZXVIDCOMMON_H
3 #include "zxconfig.h"
5 #ifdef USE_GREY
6 #include "lib/grey.h"
7 #endif
9 #include "spscr_p.h"
10 #include "spmain.h"
11 #include "spperif.h"
13 #if LCD_HEIGHT >= ZX_HEIGHT && LCD_WIDTH >= ZX_WIDTH
14 #define WIDTH LCD_WIDTH
15 #define HEIGHT LCD_HEIGHT
16 #define X_OFF 0
17 #define Y_OFF 0
18 #define X_STEP 1
19 #define Y_STEP 1
20 #else
21 #define WIDTH 320 /* 256 */
22 #define HEIGHT 200 /* 192 */
23 #define X_OFF ( (WIDTH - ZX_WIDTH)/2)
24 #define Y_OFF ( (HEIGHT - ZX_HEIGHT)/2)
25 /* calculate distance (in source) between pixels*/
26 #define X_STEP ((ZX_WIDTH<<16) / LCD_WIDTH)
27 #define Y_STEP ((ZX_HEIGHT<<16) / LCD_HEIGHT)
28 #endif
30 extern unsigned char image_array [ HEIGHT * WIDTH ];
32 #endif /* ZXVIDCOMMON_H */