Mercurial > emacs
comparison src/xfaces.c @ 3401:b7024624506c
(init_frame_faces): Don't look at selected_frame unless it is an X frame.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 01 Jun 1993 19:23:38 +0000 |
parents | 9857db8aa4cd |
children | 291f28da7ea1 |
comparison
equal
deleted
inserted
replaced
3400:927c3d8374ef | 3401:b7024624506c |
---|---|
469 if (selected_frame == f) | 469 if (selected_frame == f) |
470 abort (); | 470 abort (); |
471 | 471 |
472 /* Make sure that all faces valid on the selected frame are also valid | 472 /* Make sure that all faces valid on the selected frame are also valid |
473 on this new frame. */ | 473 on this new frame. */ |
474 { | 474 if (FRAME_X_P (selected_frame)) |
475 int i; | 475 { |
476 int n_faces = selected_frame->display.x->n_faces; | 476 int i; |
477 struct face **faces = selected_frame->display.x->faces; | 477 int n_faces = selected_frame->display.x->n_faces; |
478 | 478 struct face **faces = selected_frame->display.x->faces; |
479 for (i = 2; i < n_faces; i++) | 479 |
480 if (faces[i]) | 480 for (i = 2; i < n_faces; i++) |
481 ensure_face_ready (f, i); | 481 if (faces[i]) |
482 } | 482 ensure_face_ready (f, i); |
483 } | |
483 } | 484 } |
484 | 485 |
485 | 486 |
486 /* Called from Fdelete_frame. */ | 487 /* Called from Fdelete_frame. */ |
487 void | 488 void |