Jump to content

BUG IN gimage.c


Recommended Posts

same as i reported for progressbar.c; the gwinGImageCreate need add red line , otherwise in gwinImageOpenFile may crashed.

ENV: MCU=STM32F103VT IDE =IAR 6.6

GHandle gwinGImageCreate(GDisplay *g, GImageObject *gobj, GWindowInit *pInit) {

if (!(gobj = (GImageObject *)_gwindowCreate(g, &gobj->g, pInit, &imageVMT, 0)))

return 0;

// Ensure the gdispImageIsOpen() gives valid results

gobj->image.type = 0;

gobj->image.fns = 0;//add for fix this bug

// Initialise the timer

#if GWIN_NEED_IMAGE_ANIMATION

gtimerInit(&gobj->timer);

#endif

gwinSetVisible((GHandle)gobj, pInit->show);

return (GHandle)gobj;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...