Added an ImportBits() function to ServerBitmap and used it in ReadBitmap(). Should work for all colorspaces now.

Magnify does now work correctly, fixed bug 197.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16581 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2006-03-05 12:59:39 +00:00
parent b09e53fae0
commit acfad7920c
3 changed files with 23 additions and 14 deletions
@@ -62,6 +62,9 @@ class ServerBitmap {
//! Does a shallow copy of the bitmap passed to it
inline void ShallowCopy(const ServerBitmap *from);
status_t ImportBits(const void *bits, int32 bitsLength,
int32 bytesPerRow, color_space colorSpace);
void PrintToStream();
protected: