- blitscreen();
- XFlush(display);
-
- Random = Random * 129 + 1;
-}
-
-static int ttl_map[] =
-{
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,0,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,2,3,4,-1, /* !',-. */
- 5,6,7,8,9,10,11,12,13,14,15,-1,-1,-1,-1,16, /* 0123456789:? */
- -1,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, /* ABCDEFGHIJKLMNO */
- 32,33,34,35,36,37,38,39,40,41,42,-1,-1,-1,-1,-1, /* PQRSTUVWXYZ */
- -1,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, /* abcdefghijklmno */
- 32,33,34,35,36,37,38,39,40,41,42,-1,-1,-1,-1,-1 /* pqrstuvwxyz */
-};
-
-void title_string(unsigned int y, unsigned int left, unsigned int right,
- char *string)
-{
- int i;
- unsigned int x;
-
- xdebug("title_string");
-
- y *= TILEY;
- left *= SCOREX;
- right *= SCOREX;
-
- x = (left + right - strlen(string) * MENUFONTX) / 2;
- if (x < left || x >= right)
- x = left;
-
- /* restore background graphic where text will be drawn */
- BlitBitmap(ttlBitmap, screenBitmap, ORIG_MENU_SX + left, ORIG_MENU_SY + y,
- right - left, MENUFONTY, left, y);
-
-#if 1
-#else
- if (ttlmaskBitmap)
- XSetClipMask(display, screenGC, ttlmaskBitmap);
-#endif
-
- for (i = 0; string[i] && x < right; i++)
- {
- int ch_pos, ch_x, ch_y;
-
- ch_pos = ttl_map[string[i] & 127];
-
- if (ch_pos == -1 || ch_pos > 22 * 2)
- continue; /* no graphic for this character */
-
- ch_x = (ch_pos % 22) * GFXMENUFONTX;
- ch_y = (ch_pos / 22 + 12) * TILEY;
-