When first ported to GLVertexBuffer, screenshot had the same colors as zoom plugin. Later, the colors were changed from 0x2fff to 0x2f in screenshot, but not in zoom.
After the patch "Fix GLVertexBuffer::addColors () for GLushort", the screenshot selection box color needs to be fixed accordingly. The box was practically invisible. Signed-off-by: Pekka Paalanen <[email protected]> --- plugins/screenshot/src/screenshot.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/screenshot/src/screenshot.cpp b/plugins/screenshot/src/screenshot.cpp index f0aae91..10d1022 100644 --- a/plugins/screenshot/src/screenshot.cpp +++ b/plugins/screenshot/src/screenshot.cpp @@ -270,10 +270,10 @@ ShotScreen::glPaintOutput (const GLScreenPaintAttrib &attrib, vertexData[10] = y2; vertexData[11] = 0.0f; - colorData[0] = 0x2f; - colorData[1] = 0x2f; - colorData[2] = 0x4f; - colorData[3] = 0x4f; + colorData[0] = 0x2fff; + colorData[1] = 0x2fff; + colorData[2] = 0x4fff; + colorData[3] = 0x4fff; transform.translate (-0.5f, -0.5f, -DEFAULT_Z_CAMERA); transform.scale (1.0f / output->width (), @@ -297,7 +297,7 @@ ShotScreen::glPaintOutput (const GLScreenPaintAttrib &attrib, vertexData[7] = y2; vertexData[9] = x2; vertexData[10] = y1; - colorData [3] = 0x9f; + colorData [3] = 0x9fff; streamingBuffer->addColors (1, colorData); streamingBuffer->addVertices (4, vertexData); -- 1.7.3.4 _______________________________________________ dev mailing list [email protected] http://lists.compiz.org/mailman/listinfo/dev
