Changeset 442
- Timestamp:
- 08/04/07 16:15:41 (1 year ago)
- Files:
-
- trunk/src/main-sdl.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main-sdl.c
r346 r442 523 523 TTF_Font *ttf_font; 524 524 525 /* Free any old data */526 if (font->data) sdl_FontFree(font);527 528 525 /* Our temporary glyph will be rendered in white */ 529 526 SDL_Color white = { 255, 255, 255, 0 }; … … 534 531 /* But we need an extra space to store the total pixel count */ 535 532 int num_pixels = NUM_GLYPHS + 1; 533 534 /* Free any old data */ 535 if (font->data) sdl_FontFree(font); 536 536 537 537 /* Build the path */ … … 1252 1252 int i; 1253 1253 Uint32 colour = SDL_MapRGB(AppWin->format, 160, 160, 60); 1254 / /Uint32 ccolour = SDL_MapRGB(AppWin->format, 160, 40, 40);1254 /* int32 ccolour = SDL_MapRGB(AppWin->format, 160, 40, 40); */ 1255 1255 SDL_FillRect(AppWin, NULL, back_colour); 1256 1256 … … 1271 1271 SizingSpot.x = win->left + win->width - 10; 1272 1272 SizingSpot.y = win->top + win->height - 10; 1273 / /SDL_FillRect(AppWin, &SizingSpot, ccolour);1273 /* SDL_FillRect(AppWin, &SizingSpot, ccolour); */ 1274 1274 1275 1275 if (Sizing) … … 1384 1384 { 1385 1385 int i, maxl = 0; 1386 int width = maxl * StatusBar.font.width + 20; 1387 int height = ANGBAND_TERM_MAX * (StatusBar.font.height + 1); 1388 1386 1389 for (i = 0; i < ANGBAND_TERM_MAX; i++) 1387 1390 { … … 1389 1392 if (l > maxl) maxl = l; 1390 1393 } 1391 int width = maxl * StatusBar.font.width + 20;1392 int height = ANGBAND_TERM_MAX * (StatusBar.font.height + 1);1393 1394 1394 1395 sdl_WindowInit(&PopUp, width, height, AppWin, StatusBar.font.name); … … 1471 1472 { 1472 1473 int i, maxl = 0; 1474 int width = maxl * StatusBar.font.width + 20; 1475 int height = num_fonts * (StatusBar.font.height + 1); 1476 1473 1477 for (i = 0; i < num_fonts; i++) 1474 1478 { … … 1476 1480 if (l > maxl) maxl = l; 1477 1481 } 1478 int width = maxl * StatusBar.font.width + 20;1479 int height = num_fonts * (StatusBar.font.height + 1);1480 1482 1481 1483 sdl_WindowInit(&PopUp, width, height, AppWin, StatusBar.font.name); … … 2272 2274 Moving = TRUE; 2273 2275 2274 / /BringToTop(idx);2276 /* BringToTop(idx); */ 2275 2277 2276 2278 /* Remember where we started */ … … 2326 2328 else if (idx != -1) 2327 2329 { 2330 int x, y; 2328 2331 win = &windows[idx]; 2329 2332 2330 2333 /* Calculate the 'cell' coords */ 2331 intx = (mouse.x - win->left - win->border) / win->tile_wid;2332 inty = (mouse.y - win->top - win->title_height) / win->tile_hgt;2334 x = (mouse.x - win->left - win->border) / win->tile_wid; 2335 y = (mouse.y - win->top - win->title_height) / win->tile_hgt; 2333 2336 2334 2337 /* Bounds check */ … … 2420 2423 if (key_sym == SDLK_PRINT) 2421 2424 { 2422 / /sdl_print_screen();2425 /* sdl_print_screen();*/ 2423 2426 return; 2424 2427 } … … 2817 2820 SDL_Rect rc; 2818 2821 2819 / /if (use_bigtile) n*=2;2822 /*if (use_bigtile) n*=2;*/ 2820 2823 /* Build the area to black out */ 2821 2824 rc.x = col * win->tile_wid; … … 3109 3112 char buf[128]; 3110 3113 sdl_Button *button; 3114 int x; 3115 3111 3116 popped = FALSE; 3112 int x;3113 3117 3114 3118 /* Make sure */
