mirror of
https://github.com/weiju/amiga-stuff
synced 2025-12-08 14:58:33 +00:00
scrolling:integrated the xy limited algorithm
This commit is contained in:
@ -15,15 +15,9 @@
|
||||
|
||||
#define SCREENWIDTH 320
|
||||
#define SCREENHEIGHT 256
|
||||
#define EXTRAWIDTH 32
|
||||
#define SCREENBYTESPERROW (SCREENWIDTH / 8)
|
||||
|
||||
#define BITMAPHEIGHT SCREENHEIGHT
|
||||
|
||||
#define BLOCKSWIDTH 320
|
||||
#define BLOCKSHEIGHT 256
|
||||
#define BLOCKSDEPTH 4
|
||||
|
||||
#define BLOCKSCOLORS (1L << BLOCKSDEPTH)
|
||||
|
||||
#define BLOCKWIDTH 16
|
||||
@ -40,5 +34,6 @@
|
||||
|
||||
#define IS_BITMAP_INTERLEAVED(bitmap) ((GetBitMapAttr(bitmap, BMA_FLAGS) & BMF_INTERLEAVED) == BMF_INTERLEAVED)
|
||||
#define ROUND2BLOCKWIDTH(x) ((x) & ~(BLOCKWIDTH - 1))
|
||||
#define ROUND2BLOCKHEIGHT(x) ((x) & ~(BLOCKHEIGHT - 1))
|
||||
|
||||
#endif /* __GLOBAL_DEFS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user