Commit MetaInfo

Revisiona8de0574c7ab742da03c764f846216c8766abb58 (tree)
Zeit2020-09-25 02:46:15
AutorSHIRAKATA Kentaro <argrath@ub32...>
CommiterSHIRAKATA Kentaro

Log Message

fix #40530

Ändern Zusammenfassung

Diff

--- a/ChangeLog.j
+++ b/ChangeLog.j
@@ -1,6 +1,7 @@
11 * 次の問題を修正
22 * X11環境で日本語入力ができない (#40562)
33 * 一部のオプションで英語のフルネームを使えない (#40657)
4+ * X11版でascii_mapが正しく表示されない (#40530)
45 * X11LARGETILEを削除(#40681)
56 * JNetHack.adを最新に更新(#40531)
67
--- a/win/X11/winmesg.c
+++ b/win/X11/winmesg.c
@@ -539,13 +539,18 @@ struct xwindow *wp;
539539 mesg_info->char_lbearing, mesg_info->char_ascent + y_base,
540540 curr->line, curr->str_length);
541541 #else
542+ /* GCを使い回さずにコピーしたものを使う */
543+ GC gc = XCreateGC(XtDisplay(wp->w), XtWindow(wp->w), 0, NULL );
544+ XtGCMask mask = GCFunction | GCForeground | GCBackground | GCFont;
545+ XCopyGC(XtDisplay(wp->w), mesg_info->gc, mask, gc);
542546 XmbDrawString(XtDisplay(wp->w), XtWindow(wp->w),
543547 mesg_info->fontset,
544- mesg_info->gc,
548+ gc,
545549 mesg_info->char_lbearing,
546550 mesg_info->char_ascent + y_base,
547551 curr->line,
548552 curr->str_length);
553+ XFreeGC(XtDisplay(wp->w), gc);
549554 #endif
550555 /*
551556 * This draws a line at the _top_ of the line of text pointed to by
Show on old repository browser