#include "wx/image.h"
#include "wx/module.h"
#include "wx/log.h"
+#include "wx/fontutil.h"
#include "wx/gtk/win_gtk.h"
static void wxCleanUpGCPool()
{
- for (int i = 0; i < GC_POOL_SIZE; i++)
+ for (int i = 0; i < wxGCPoolSize; i++)
{
if (wxGCPool[i].m_gc)
gdk_gc_unref( wxGCPool[i].m_gc );
#ifdef __WXGTK20__
m_context = gtk_widget_get_pango_context( widget );
+
m_fontdesc = widget->style->font_desc;
#endif
// don't use DrawPoint() because it uses the current pen
// colour, and we don't need it here
gdk_draw_point( m_window, m_textGC,
- XLOG2DEV(x + dstX), YLOG2DEV(y + dstY) );
+ XLOG2DEV(x) + dstX, YLOG2DEV(y) + dstY );
}
}
}
m_font = font;
#ifdef __WXGTK20__
- // fix fontdesc?
+ m_fontdesc = m_font.GetNativeFontInfo()->description;
#endif
}