comparison src/faces.c @ 5474:4dee0387b9de

Merged with trunk.
author Mats Lidell <matsl@xemacs.org>
date Tue, 29 Mar 2011 00:02:47 +0200
parents 00e79bbbe48f 3889ef128488
children 248176c74e6b
comparison
equal deleted inserted replaced
5473:ac37a5f7e5be 5474:4dee0387b9de
1414 face cache. But this is the cache we're building right now, it is 1414 face cache. But this is the cache we're building right now, it is
1415 null. 1415 null.
1416 - BARF !!!!! 1416 - BARF !!!!!
1417 1417
1418 To sum up, this means that it is in general unsafe to instantiate 1418 To sum up, this means that it is in general unsafe to instantiate
1419 images before face cache updating is complete (appart from image 1419 images before face cache updating is complete (apart from image
1420 related face attributes). The solution we use below is to actually 1420 related face attributes). The solution we use below is to actually
1421 detect whether we're building the window's face_cachels for the first 1421 detect whether we're building the window's face_cachels for the first
1422 time, and simply NOT frob the background pixmap in that case. If 1422 time, and simply NOT frob the background pixmap in that case. If
1423 other image-related face attributes are ever implemented, they should 1423 other image-related face attributes are ever implemented, they should
1424 be protected the same way right here. 1424 be protected the same way right here.
1425 1425
1426 One note: 1426 One note:
1427 * See comment in `default_face_font_info' in face.c. Who wrote it ? 1427 * See comment in `default_face_font_info' in face.c. Who wrote it ?
1428 Maybe we have the begining of an answer here ? 1428 Maybe we have the beginning of an answer here ?
1429 1429
1430 Footnotes: 1430 Footnotes:
1431 [1] See comment at the top of `allocate_window' in window.c. 1431 [1] See comment at the top of `allocate_window' in window.c.
1432 1432
1433 -- didier 1433 -- didier