add error logging to bitmap constructor
This commit is contained in:
@@ -58,7 +58,9 @@ class Bitmap {
|
|||||||
data_(data),
|
data_(data),
|
||||||
palette_(palette) {
|
palette_(palette) {
|
||||||
InitializeFromData(width, height, depth, data);
|
InitializeFromData(width, height, depth, data);
|
||||||
ApplyPalette(palette);
|
if (!ApplyPalette(palette).ok()) {
|
||||||
|
std::cerr << "Error applying palette in bitmap constructor." << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user