1
0
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:
Wei-ju Wu
2016-06-15 13:51:22 -07:00
parent 7f15fd6575
commit a11f22ab0c
8 changed files with 1054 additions and 11 deletions

View File

@ -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__ */