~aleteoryx/muditaos

de3b05d64de88172014887f355a5822390c0d989 — Maciej Janicki 5 years ago 4c72152
[EGD-5722] Fix color test scheme change

This commit fixes full white color not being changed by Color Test
window in case of clear command and vector images.
1 files changed, 4 insertions(+), 2 deletions(-)

M module-gui/gui/core/DrawCommand.cpp
M module-gui/gui/core/DrawCommand.cpp => module-gui/gui/core/DrawCommand.cpp +4 -2
@@ 33,7 33,7 @@ namespace gui
{
    void Clear::draw(Context *ctx) const
    {
        ctx->fill(ColorFullWhite.intensity);
        ctx->fill(renderer::PixelRenderer::getColor(gui::ColorFullWhite.intensity));
    }

    void DrawLine::draw(Context *ctx) const


@@ 248,7 248,9 @@ namespace gui

                offsetRowContext += vecOffset;
                if (vecColor != alphaColor) {
                    std::memset(ctxData + offsetRowContext, vecColor, std::min(ctx->getW(), vecLength));
                    std::memset(ctxData + offsetRowContext,
                                renderer::PixelRenderer::getColor(vecColor),
                                std::min(ctx->getW(), vecLength));
                }
                offsetRowContext += vecLength;
            }