summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/makefile.mingw.in4
-rw-r--r--examples/viewer-ft2.c2
-rw-r--r--examples/viewer-win32.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/makefile.mingw.in b/examples/makefile.mingw.in
index cc086b78..69ef74f6 100644
--- a/examples/makefile.mingw.in
+++ b/examples/makefile.mingw.in
@@ -14,7 +14,7 @@ DEPCFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) $(FREETYPE2_CFLAGS)
all : \
../config.h \
viewer-win32.exe \
- viewer-ft2.exe \
+ viewer-ft2.exe
../config.h : ../config.h.win32
cp $< $@
@@ -23,7 +23,7 @@ viewer-win32.exe : viewer-win32.o
$(CC) -o $@ $< $(OPTIMIZE) -L ../pango -lpango-$(PANGO_VER) -lpangowin32-$(PANGO_VER) $(GTK_LIBS) $(GLIB_LIBS) -gdi32
viewer-ft2.exe : viewer-ft2.o
- $(CC) -mwindows -o $@ $< $(OPTIMIZE) -L ../pango -lpango-$(PANGO_VER) -lpangoft2-$(PANGO_VER) $(FREETYPE2_LIBS) $(GTK_LIBS) $(GLIB_LIBS)
+ $(CC) -o $@ $< $(OPTIMIZE) -L ../pango -lpango-$(PANGO_VER) -lpangoft2-$(PANGO_VER) $(FREETYPE2_LIBS) $(GTK_LIBS) $(GLIB_LIBS)
# Hack to get an updated makefile.mingw automatically after updating
# makefile.mingw.in. Only for developer use.
diff --git a/examples/viewer-ft2.c b/examples/viewer-ft2.c
index e077c525..e7e24bd1 100644
--- a/examples/viewer-ft2.c
+++ b/examples/viewer-ft2.c
@@ -696,7 +696,7 @@ main (int argc,
font_description.variant = PANGO_VARIANT_NORMAL;
font_description.weight = PANGO_WEIGHT_NORMAL;
font_description.stretch = PANGO_STRETCH_NORMAL;
- font_description.size = 24000;
+ font_description.size = 24 * PANGO_SCALE;
pango_context_set_font_description (context, &font_description);
diff --git a/examples/viewer-win32.c b/examples/viewer-win32.c
index cbfb8033..6ecb41c9 100644
--- a/examples/viewer-win32.c
+++ b/examples/viewer-win32.c
@@ -650,7 +650,7 @@ main (int argc, char **argv)
font_description.variant = PANGO_VARIANT_NORMAL;
font_description.weight = 500;
font_description.stretch = PANGO_STRETCH_NORMAL;
- font_description.size = 16000;
+ font_description.size = 16 * PANGO_SCALE;
pango_context_set_font_description (context, &font_description);