Ticket #9554: 0002-Surround-ConvertFromCMAP8-with-ifdef-__HAIKU__-gaurd.patch

File 0002-Surround-ConvertFromCMAP8-with-ifdef-__HAIKU__-gaurd.patch, 823 bytes (added by jscipione, 6 years ago)

Surround ConvertFromCMAP8 with #ifdef HAIKU gaurd again

  • src/kits/tracker/Bitmaps.cpp

    From be2f3a38667692d7fecee91b74b1feca65523c6a Mon Sep 17 00:00:00 2001
    From: John Scipione <jscipione@gmail.com>
    Date: Thu, 21 Mar 2013 09:39:20 -0400
    Subject: [PATCH 2/2] Surround ConvertFromCMAP8 with #ifdef __HAIKU__ gaurd
     again
    
    ---
     src/kits/tracker/Bitmaps.cpp |    2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/src/kits/tracker/Bitmaps.cpp b/src/kits/tracker/Bitmaps.cpp
    index 6d3d99e..c2ecc51 100644
    a b BImageResources::GetIconResource(int32 id, icon_size size, 
    167167        return B_ERROR;
    168168    }
    169169
     170#ifdef __HAIKU__
    170171    if (dest->ColorSpace() != B_CMAP8) {
    171172        return BIconUtils::ConvertFromCMAP8((uint8*)data, size, size,
    172173            size, dest);
    173174    }
     175#endif
    174176
    175177    dest->SetBits(data, (int32)length, 0, B_CMAP8);
    176178    return B_OK;