Donate Share

libmng

Tracker: Bugs

5 mng is not supported in gtk-directfb - ID: 2677821
Last Update: Settings changed ( monilparmar )

hi,

I have used mng library (libmng-1.0.10). In which one gtk based widget
"gtk-mng-view" is available for displaying MNG animations. Also there is
one
sample mng file (linux.mng), to test the mng animation. When iam running
this
mng file with gtk-mng-view (./gmngview linux.mng) on gtk-x11 background it
works fine. But when trying it on gtk-directfb background it stops after
showing a frame.


monil parmar ( monilparmar ) - 2009-03-10 07:52

5

Open

None

Gerard Juyn

library core

None

Public


Comment ( 1 )




Date: 2009-03-18 06:12
Sender: monilparmar

After making minor modification in gtk-mng-view it works fine on
gtk-directfb backgroud.

Sven Neumann provided the solution.
This is a bug in gtk-mng-view.c. It tries to
draw outside the expose handler. Simply replace the function
mng_refresh_callback() in gtk-mng-view.c with the following code and it
will work just fine:

static mng_bool
mng_refresh_callback (mng_handle mng_h,
mng_uint32 x,
mng_uint32 y,
mng_uint32 width,
mng_uint32 height)
{
gtk_widget_queue_draw_area (GTK_WIDGET (mng_get_userdata (mng_h)),
x, y, width, height);

return MNG_TRUE;
}

so someone from maintenance team can verify it and change it.



Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2009-03-18 07:19 monilparmar