diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/makefile.mingw | 2 | ||||
-rw-r--r-- | examples/viewer-win32.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/examples/makefile.mingw b/examples/makefile.mingw index 259e02af..b20101d0 100644 --- a/examples/makefile.mingw +++ b/examples/makefile.mingw @@ -18,5 +18,5 @@ all : \ cp $< $@ viewer-win32.exe : viewer-win32.o - $(CC) -o $@ $< -L ../pango -lpango-$(PANGO_VER) -lpangowin32-$(PANGO_VER) $(GTK_LIBS) $(GLIB_LIBS) -gdi32 + $(CC) -o $@ $< $(OPTIMIZE) -L ../pango -lpango-$(PANGO_VER) -lpangowin32-$(PANGO_VER) $(GTK_LIBS) $(GLIB_LIBS) -gdi32 diff --git a/examples/viewer-win32.c b/examples/viewer-win32.c index f5007a7d..969b6e9b 100644 --- a/examples/viewer-win32.c +++ b/examples/viewer-win32.c @@ -126,9 +126,6 @@ split_paragraphs (char *text) Paragraph *para = g_new (Paragraph, 1); para->text = last_para; para->length = p - last_para; - /* Don't include the newline */ - if (wc == '\n') - para->length--; para->layout = pango_layout_new (context); pango_layout_set_text (para->layout, para->text, para->length); para->height = 0; @@ -302,7 +299,7 @@ draw (GtkWidget *layout, GdkRectangle *area) if (height + para->height >= GTK_LAYOUT (layout)->yoffset + area->y) { - GdkGCValuesMask mask = GDK_GC_FOREGROUND|GDK_GC_BACKGROUND; + GdkGCValuesMask mask = GDK_GC_FOREGROUND|GDK_GC_BACKGROUND|GDK_GC_FONT; HDC hdc; hdc = gdk_win32_hdc_get (GTK_LAYOUT (layout)->bin_window, |