diff options
| author | Jan Djärv | 2009-11-25 16:19:51 +0000 |
|---|---|---|
| committer | Jan Djärv | 2009-11-25 16:19:51 +0000 |
| commit | 084b049b75a381b25af90a54b8818822fdc5cc09 (patch) | |
| tree | b6d8cfb866450f6d4d91b0ca8365ab2c9352a50d /src | |
| parent | d6b8d4e75e3b293ebe643c102ee821c20efe925c (diff) | |
| download | emacs-084b049b75a381b25af90a54b8818822fdc5cc09.tar.gz emacs-084b049b75a381b25af90a54b8818822fdc5cc09.zip | |
xsettings.c: Revert changes from 2009-11-23. Just use Xft defaults (bug #5025).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xsettings.c | 20 |
2 files changed, 5 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 865b6a4c635..36032bd01df 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-11-25 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xsettings.c: Revert changes from 2009-11-23. Just use Xft | ||
| 4 | defaults (bug #5025). | ||
| 5 | |||
| 1 | 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * insdel.c (adjust_markers_for_delete): Move it in the | 8 | * insdel.c (adjust_markers_for_delete): Move it in the |
diff --git a/src/xsettings.c b/src/xsettings.c index 68c1e0c4eeb..0aba928839f 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -367,24 +367,6 @@ read_xft_settings (dpyinfo, settings) | |||
| 367 | return rc == Success; | 367 | return rc == Success; |
| 368 | } | 368 | } |
| 369 | 369 | ||
| 370 | static void | ||
| 371 | set_default_xft_settings (dpyinfo) | ||
| 372 | struct x_display_info *dpyinfo; | ||
| 373 | { | ||
| 374 | FcPattern *pat; | ||
| 375 | pat = FcPatternCreate (); | ||
| 376 | XftDefaultSubstitute (dpyinfo->display, | ||
| 377 | XScreenNumberOfScreen (dpyinfo->screen), | ||
| 378 | pat); | ||
| 379 | |||
| 380 | FcPatternDel (pat, FC_ANTIALIAS); | ||
| 381 | FcPatternAddBool (pat, FC_ANTIALIAS, FcTrue); | ||
| 382 | FcPatternDel (pat, FC_HINTING); | ||
| 383 | FcPatternAddBool (pat, FC_HINTING, FcTrue); | ||
| 384 | FcPatternDel (pat, FC_HINT_STYLE); | ||
| 385 | FcPatternAddInteger (pat, FC_HINT_STYLE,FC_HINT_MEDIUM); | ||
| 386 | XftDefaultSet (dpyinfo->display, pat); | ||
| 387 | } | ||
| 388 | 370 | ||
| 389 | static void | 371 | static void |
| 390 | apply_xft_settings (dpyinfo, send_event_p) | 372 | apply_xft_settings (dpyinfo, send_event_p) |
| @@ -565,8 +547,6 @@ init_xfd_settings (dpyinfo) | |||
| 565 | get_prop_window (dpyinfo); | 547 | get_prop_window (dpyinfo); |
| 566 | if (dpyinfo->xsettings_window != None) | 548 | if (dpyinfo->xsettings_window != None) |
| 567 | apply_xft_settings (dpyinfo, False); | 549 | apply_xft_settings (dpyinfo, False); |
| 568 | else | ||
| 569 | set_default_xft_settings (dpyinfo); | ||
| 570 | 550 | ||
| 571 | UNBLOCK_INPUT; | 551 | UNBLOCK_INPUT; |
| 572 | 552 | ||