giusloq Student

  • Member since Feb 5th 2015
Last Activity

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • giusloq -

    Replied to the thread Alpha images rendered correctly only to dark background.

    Post
    Quote from Thomas W.: “Maybe you must define your own read back function in order to achieve single byte reads. But that is only an assumption... ” I don't think so. The controller (ILI9341) replies with one dummy plus two data bytes. Both bytes have…
  • giusloq -

    Replied to the thread Alpha images rendered correctly only to dark background.

    Post
    I found the problem that caused the crash. I forgot to set PortAPI.pfRead16_A1 for GUIDRV_FlexColor_SetFunc(). Now it works. Anyway I didin't understand. We configured ILI9341 to use the 16-bits interface in 16-bits per pixel (5-6-5). When the driver…
  • giusloq -

    Replied to the thread Alpha images rendered correctly only to dark background.

    Post
    I didn't call GUIDRV_FlexColor_SetReadFunc66709_B16(), so I think the driver was using GUIDRV_FLEXCOLOR_READ_FUNC_I (the default function). When I tried to set GUIDRV_FLEXCOLOR_READ_FUNC_III, the program crashes with a HardFault. The call stack says…
  • giusloq -

    Posted the thread Alpha images rendered correctly only to dark background.

    Thread
    I have many alpha images. For example: C Source Code (104 lines)Every pixel is descripted as a single byte that represents the "quantity" of the image respect the background. Of course, the content of those images is only the shape. I draw alpha images…
  • giusloq -

    Replied to the thread Full-screen child window.

    Post
    I noticed you use 0 to invalidate the handle. I usually use WM_HWIN_NULL for this, even if it is really 0. I suppose a valid handle can't be never 0. Is it correct?
  • giusloq -

    Posted the thread Full-screen child window.

    Thread
    Some windows needs to create a full-screen child window (in my case, a keypad). However the parent window isn't full-screen, so the keypad will not be full-screen too. I know I can create the keypad window as a child of the background window (and put it…