Lines Matching refs:bmp1
103 static bool operator==(BBitmap &bmp1, BBitmap &bmp2);
104 static bool operator!=(BBitmap &bmp1, BBitmap &bmp2);
233 operator==(BBitmap &bmp1, BBitmap &bmp2) {
234 if (bmp1.Bounds() == bmp2.Bounds()) {
236 if (bmp1.ColorSpace() == bmp2.ColorSpace()) {
238 char *data1 = (char*)bmp1.Bits();
244 for (int i = 0; i < bmp1.BitsLength(); data1++, data2++, i++) {
250 /* for (int i = 0; i < bmp1.Bounds().IntegerHeight(); i++) {
251 for (int j = 0; j < bmp1.Bounds().IntegerWidth(); j++) {
252 // printf("(%d, %d)", data1[(i * bmp1.BytesPerRow()) + j], data2[(i * bmp2.BytesPerRow()) + j]);
253 if (data1[(i * bmp1.BytesPerRow()) + j] != data2[(i * bmp2.BytesPerRow()) + j]) {
267 operator!=(BBitmap &bmp1, BBitmap &bmp2) {
268 return !(bmp1 == bmp2);
429 : bmp1(BitmapBounds(which), B_CMAP8),
435 fill_bitmap(bmp1, 1);
476 return &bmp1;
488 BBitmap bmp1;