summaryrefslogtreecommitdiffstats
path: root/apps/plugins/zxbox/zxvid_com.h
blob: 0483251b96187ba006ef5fbbb751fb4e7521863b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef ZXVIDCOMMON_H
#define ZXVIDCOMMON_H
#include "zxconfig.h"

#ifdef USE_GRAY
#include "../lib/gray.h"
#endif

#include "spscr_p.h"
#include "spmain.h"
#include "spperif.h"

#if LCD_HEIGHT >= ZX_HEIGHT && LCD_WIDTH >= ZX_WIDTH
#define WIDTH   LCD_WIDTH
#define HEIGHT  LCD_HEIGHT
#else
#define WIDTH      320 /* 256 */
#define HEIGHT     200 /* 192 */
#define X_OFF ( (WIDTH - ZX_WIDTH)/2)
#define Y_OFF ( (HEIGHT - ZX_HEIGHT)/2)
/* calculate distance (in source) between pixels*/
#define  X_STEP  ((ZX_WIDTH<<16) / LCD_WIDTH)
#define  Y_STEP  ((ZX_HEIGHT<<16) / LCD_HEIGHT)
#endif

extern unsigned char image_array [ HEIGHT * WIDTH ];

#endif /* ZXVIDCOMMON_H */