Jump to content
Sign in to follow this  
zhw7238

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;

}

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...