Issue with bitmaps scale
This commit is contained in:
+7
-5
@@ -411,12 +411,14 @@ class BitmapBuffer: public BitmapBufferBase<uint16_t>
|
||||
y = ymin;
|
||||
}
|
||||
|
||||
if (x + w > xmax) {
|
||||
w = xmax - x;
|
||||
}
|
||||
if (scale == 0) {
|
||||
if (x + w > xmax) {
|
||||
w = xmax - x;
|
||||
}
|
||||
|
||||
if (y + h > ymax) {
|
||||
h = ymax - y;
|
||||
if (y + h > ymax) {
|
||||
h = ymax - y;
|
||||
}
|
||||
}
|
||||
|
||||
if (w <= 0 || h <= 0)
|
||||
|
||||
Reference in New Issue
Block a user