Commit c62a5abb authored by Hans Breuer's avatar Hans Breuer Committed by Hans Breuer
Browse files

need to adjust the data pointer for BI_BITFIELDS bitmaps, fixes #99246

2002-12-06  Hans Breuer  <hans@breuer.org>

	* plug-ins/common/winclipboard.c : need to adjust the data
	pointer for BI_BITFIELDS bitmaps, fixes #99246
parent 6604398f
2002-12-06 Hans Breuer <hans@breuer.org>
* plug-ins/common/winclipboard.c : need to adjust the data
pointer for BI_BITFIELDS bitmaps, fixes #99246
2002-12-06 Sven Neumann <sven@gimp.org>
 
* app/paint/gimppaintcore.c: no need to include app_procs.h here.
......
......@@ -578,7 +578,10 @@ CB_PasteImage (gboolean interactive,
/* adjust pointer */
pPal = pInfo->bmiColors;
pData = (guchar*)pPal + sizeof(RGBQUAD) * nColors;
if (pInfo->bmiHeader.biCompression == BI_BITFIELDS)
pData = (guchar*)pPal + sizeof(DWORD) * 3;
else
pData = (guchar*)pPal + sizeof(RGBQUAD) * nColors;
/* create palette */
if (0 != nColors)
......
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