Discussion:
[gtkextra] patch to solve the problem miss drawing on MS-Windows
Daisuke Shimamura
2013-03-05 16:30:59 UTC
Permalink
Hi all,

This is a patch to solve the problem miss drawing on MS-Windows.
I have tested this code on Win7 using the GTK-2.24 and MinGW.
This patch repair three problems.

The first problem is the reason of the problem miss drawing.
Because gdk_screen_get_resolution() of gtkplotcairo.c have always
returns -1, Failed to get the font, it eventually breaks the Cairo
context.

The second problem, because the gtk_plot_cairo_draw_pixmap() of
gtkplotcairo.c did not check a cairo object, it produces SEGV.

The third problem, testgtkplot.c prints out a too small image like a stamp.

I hope you like it.

--
Daisuke Shimamura

--
Daisuke Shimamura

Loading...