Kaydet (Commit) 01bd2bd3 authored tarafından Andrzej Hunt's avatar Andrzej Hunt

Upgrade gtktiledviewer to RGBA.

The Alpha channel seems to be set incorrectly by LO, hence
we need to manually set it here for now.

Change-Id: I1f9091b8b6f88c1dba6653dfb7bf51f9fe14b3fc
üst 04d5b861
...@@ -51,9 +51,13 @@ bool drawCallback(GtkWidget* /* The eventbox */, void* /* cairo_t* cr */, gpoint ...@@ -51,9 +51,13 @@ bool drawCallback(GtkWidget* /* The eventbox */, void* /* cairo_t* cr */, gpoint
0, 0, // origin 0, 0, // origin
nWidth, nHeight ); nWidth, nHeight );
for (int i = 3; i < nRowStride*nRenderHeight; i += 4)
{
pBuffer[i] = 0xFF;
}
GdkPixbuf* pBixBuf = gdk_pixbuf_new_from_data( pBuffer, GDK_COLORSPACE_RGB, GdkPixbuf* pBixBuf = gdk_pixbuf_new_from_data( pBuffer, GDK_COLORSPACE_RGB,
false, 8, true, 8,
nRenderWidth, nRenderHeight, nRenderWidth, nRenderHeight,
nRowStride, nRowStride,
0, 0 ); 0, 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment