[ePicLoad] setPara() forces pixmap load border fill to transparent

Issue #542 resolved
prl created an issue

In ePicLoad::setPara():

    if(bg_str[0] == '#' && strlen(bg_str)==9)
        m_conf.background = strtoul(bg_str+1, NULL, 16) | 0xFF000000;

The code demands that the caller specifies an alpha value for the background colour (strlen(bg_str)==9 forces the user to specify the colour as "#AARRGGBB"), but then overrides the user value for the background alpha with 0xFF, for fully transparent. There doesn't seem to be a good reason for this.

It should allow the caller's alpha plane value to stand.

Comments (3)

  1. Peter Urbanec

    Fix bug #542: [ePicLoad] setPara() forces pixmap load border fill to transparent

    Stop forcing full transparency on the "background" argument to ePicLoad::setPara().

    → <<cset d5c59f531215>>

  2. Log in to comment