- XFlush(display);
-
- Random = Random * 129 + 1;
-}
-
-
-/* draw main menu background and copyright note */
-
-void title_initscreen(void)
-{
- xdebug("title_initscreen");
-
- screen_x = 0;
- screen_y = 0;
-
- colour_shuffle();
- colours[1] += 8;
- colour_anim = 0;
-
-#if 1
-
- /* draw title screen on menu background */
-
- BlitBitmap(ttlBitmap, screenBitmap, ORIG_MENU_SX, ORIG_MENU_SY,
- SCR_MENUX * TILEX, SCR_MENUY * TILEY, 0, 0);
-
- /* draw copyright note at footer */
-
- if (botmaskBitmap)
- {
- BlitBitmap(botBitmap, scoreBitmap, 0, colours[1] * SCOREY,
- SCR_MENUX * TILEX, SCOREY, 0, 0);
-
- SetClipOrigin(botBitmap, botBitmap->stored_clip_gc,
- 0, 0 - colours[0] * SCOREY);
- }
-
- BlitBitmapMasked(botBitmap, scoreBitmap, 0, colours[0] * SCOREY,
- SCR_MENUX * TILEX, SCOREY, 0, 0);
-
-#else
-
- XCopyArea(display, ttlPixmap, screenPixmap, screenGC,
- 0, 0, SCR_MENUX * TILEX, SCR_MENUY * TILEY, 0, 0);
-
- if (botmaskBitmap)
- {
- XCopyArea(display, botPixmap, scorePixmap, scoreGC,
- 0, colours[1] * SCOREY, SCR_MENUX * TILEX, SCOREY, 0, 0);
- XSetClipMask(display, scoreGC, botmaskBitmap);
- XSetClipOrigin(display, scoreGC, 0, 0 - colours[0] * SCOREY);
- }
-
- XCopyArea(display, botPixmap, scorePixmap, scoreGC,
- 0, colours[0] * SCOREY, SCR_MENUX * TILEX, SCOREY, 0, 0);
-
- if (botmaskBitmap)
- XSetClipMask(display, scoreGC, None);
-
-#endif
-}
-
-
-/* draw bouncing ball on main menu footer */
-
-void title_blitscore(void)
-{
- unsigned int x, y, i;
-
- xdebug("title_blitscore");
-
- if (++colour_anim > 30)
- colour_anim = 0;
-
- i = colour_anim >= 16 ? 31 - colour_anim : colour_anim;
- x = (i / 8 + 18) * 2 * SCOREX;
- y = (i % 8 + 16) * SCOREY;
-
-#if 1
- if (botmaskBitmap)
- {
- BlitBitmap(botBitmap, scoreBitmap,
- 32 * SCOREX, colours[1] * SCOREY, 2 * SCOREX, SCOREY,
- 32 * SCOREX, 0);
-
- SetClipOrigin(botBitmap, botBitmap->stored_clip_gc,
- 32 * SCOREX - x, 0 - y);
- }
-
- BlitBitmapMasked(botBitmap, scoreBitmap,
- x, y, 2 * SCOREX, SCOREY, 32 * SCOREX, 0);
-
-#else
-
- if (botmaskBitmap)
- {
- XCopyArea(display, botPixmap, scorePixmap, scoreGC,
- 32 * SCOREX, colours[1] * SCOREY, 2 * SCOREX, SCOREY,
- 32 * SCOREX, 0);
- XSetClipMask(display, scoreGC, botmaskBitmap);
- XSetClipOrigin(display, scoreGC, 32 * SCOREX - x, 0 - y);
- }
-
- XCopyArea(display, botPixmap, scorePixmap, scoreGC,
- x, y, 2 * SCOREX, SCOREY, 32 * SCOREX, 0);
-
- if (botmaskBitmap)
- XSetClipMask(display, scoreGC, None);
-#endif