Member Avatar for manutm
manutm

Hi everybody!

I,ve made a 'news ticker' app for linux in c and gtk+. Now 'm porting it to win xp using mingw. The problem is the win xp version is slower.
Basically, the image is refreshed every interval ms. I've set a timeout using g_timeout_add_full(interval, handler, ...) in the gtk main loop and the handler scrolls a pixmap using gdk_draw_drawable(drawing_area, pixmap, ...)
If I set interval below 15 ms, the scrolling is really fast with linux, but it doesn't make any difference with win xp.
Then somebody explained that I should use the win xp high resolution timers. That means using winmm.dll in my app.
Does anybody know how I can achieve this. Is it a config in gtk or mingw32-gcc or?

Thanks in advance.

Manu TM