Changeset 974
- Timestamp:
- 07/04/08 04:09:04 (2 months ago)
- Files:
-
- trunk/src/gtk/cairo-utils.c (modified) (2 diffs)
- trunk/src/gtk/main-gtk.c (modified) (10 diffs)
- trunk/src/gtk/main-gtk.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/gtk/cairo-utils.c
r918 r974 301 301 if (surface != NULL) 302 302 { 303 cairo_rectangle_t r; 304 PangoLayout *layout; 305 PangoFontDescription *temp_font; 306 303 307 cr = cairo_create(surface); 304 308 #ifndef USE_PANGO 305 309 draw_toy_text(cr, font, actual, x, y, n, a, s); 306 310 #else 307 cairo_rectangle_t r;308 PangoLayout *layout;309 PangoFontDescription *temp_font;310 311 311 312 if (cr !=NULL) … … 370 371 void draw_toy_text(cairo_t *cr, font_info *font, measurements *actual, int x, int y, int n, byte a, cptr s) 371 372 { 372 char str[ n];373 char str[255]; 373 374 cairo_rectangle_t r; 374 375 trunk/src/gtk/main-gtk.c
r918 r974 289 289 if (t != -1) 290 290 { 291 xd = &xdata[t];292 293 291 int x = 0, y = 0, w = 0, h = 0; 294 292 GdkRectangle r; 293 294 xd = &xdata[t]; 295 295 296 296 if (GTK_WIDGET_VISIBLE(xd->win)) … … 641 641 PangoFontDescription *temp_font; 642 642 char buf[80]; 643 int i, j = 0;643 unsigned int i, j = 0; 644 644 645 645 my_strcpy(td->font.name, font_name, sizeof(td->font.name)); … … 715 715 const char *temp, *s; 716 716 int i, t = 0; 717 xtra_win_data *xd; 717 718 718 719 s = gtk_widget_get_name(GTK_WIDGET(widget)); … … 724 725 } 725 726 726 x tra_win_data *xd=&xdata[t];727 xd=&xdata[t]; 727 728 728 729 temp = gtk_font_button_get_font_name(widget); … … 763 764 static bool save_dialog_box(bool save) 764 765 { 766 GtkFileFilter *filter; 765 767 GtkWidget *selector_wid; 766 768 GtkFileChooser *selector; … … 818 820 819 821 /* Restrict the showing of pointless files */ 820 GtkFileFilter *filter;821 822 filter = gtk_file_filter_new(); 822 823 gtk_file_filter_add_custom(filter, GTK_FILE_FILTER_DISPLAY_NAME, file_open_filter, NULL, NULL); … … 1213 1214 { 1214 1215 int i; 1215 ang_file *fff; 1216 1216 1217 1217 #ifdef GTK_DEBUG 1218 1218 glog( "Loading Prefs."); 1219 1219 #endif 1220 load_term_prefs( fff);1220 load_term_prefs(); 1221 1221 1222 1222 for (i = 0; i < num_term; i++) … … 1232 1232 1233 1233 if ((td->location.x <= 0) && (td->location.y <= 0)) td->location.x = td->location.y = 100; 1234 if ((td->font.name == "") || (strlen(td->font.name)<2))1234 if ((td->font.name == NULL) || (strlen(td->font.name)<2)) 1235 1235 my_strcpy(td->font.name, "Monospace 12", sizeof(td->font.name)); 1236 1236 … … 1255 1255 xtra_win_data *xd = &xdata[i]; 1256 1256 1257 if ((xd->font.name == "") || (strlen(xd->font.name)<2))1257 if ((xd->font.name == NULL) || (strlen(xd->font.name)<2)) 1258 1258 my_strcpy(xd->font.name, "Monospace 10", sizeof(xd->font.name)); 1259 1259 … … 2396 2396 object_type *o_ptr; 2397 2397 2398 /* No equippy chars if we're in bigtile mode */2399 if ((use_bigtile) || (arg_graphics != 0) )2398 /* No equippy chars if we're in bigtile mode or creating a char */ 2399 if ((use_bigtile) || (arg_graphics != 0) || (!character_generated)) 2400 2400 { 2401 2401 return; trunk/src/gtk/main-gtk.h
r932 r974 161 161 EVENT_MONSTERHEALTH, 162 162 163 EVENT_PLAYERSPEED, 163 EVENT_PLAYERSPEED, 164 164 EVENT_DUNGEONLEVEL, 165 165 }; … … 184 184 /* Path to the Gtk settings file */ 185 185 static char settings[1024]; 186 static game_command cmd = { CMD_NULL, 0 };186 static game_command cmd = { CMD_NULL, 0, {0} }; 187 187 188 188 /* Abstracted out for future changes */
