diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-11 13:54:49 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-25 13:04:31 +0100 |
commit | 539552484dcba8fc97d26a04ef903b4139ba9a2f (patch) | |
tree | 20d9fb999911117eb5a508327a8f98f9ad96b2ca /desktop | |
parent | cd1f3480a6ebff075f243bde5891a3e8f3c9533c (diff) |
Kill gtktiledviewer's alpha channel hack.
basebmp and vcl now set the alpha channel appropriately, so no need
to do so in the viewer now.
However it would perhaps make more sense to just use RGB instead
of RGBA, seeing as the alpha channel is permanently set to be opaque.
Change-Id: I86ad758c6a8bee21b265730727a76605e5850c0c
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/qa/gtktiledviewer/gtktiledviewer.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop/qa/gtktiledviewer/gtktiledviewer.cxx b/desktop/qa/gtktiledviewer/gtktiledviewer.cxx index 2ffa59907171..1f238a9e76f9 100644 --- a/desktop/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/desktop/qa/gtktiledviewer/gtktiledviewer.cxx @@ -75,11 +75,6 @@ bool drawCallback(GtkWidget* /* The eventbox */, void* /* cairo_t* cr */, gpoint // wrong. (void) nRowStride; - for (int i = 3; i < nRowStride*nRenderHeight; i += 4) - { - pBuffer[i] = 0xFF; - } - gtk_image_set_from_pixbuf( GTK_IMAGE( ourCanvas ), ourPixBuf ); return true; |