--- nono/lib/bitmap.cpp 2026/04/29 17:05:47 1.1.1.7 +++ nono/lib/bitmap.cpp 2026/04/29 17:05:56 1.1.1.8 @@ -668,7 +668,7 @@ BitmapRGBX::DrawBitmapNtoNm1(const Rect& const uint32 *s0 = (const uint32 *)src.GetPtr(sx, sy); for (uint ty = 0; ty < N1; ty++) { const uint32 *s1 = s0 + stride32; - uint32 *d = (uint32 *)GetPtr(dx, dy + ty); + uint32 *d = (uint32 *)GetPtr(dr.x + dx, dr.y + dy + ty); for (uint tx = 0; tx < N1; tx++) { uint a00 = A(N2 - ty, N2 - tx); uint a01 = A(N2 - ty, tx); @@ -734,7 +734,7 @@ BitmapRGBX::DrawBitmapNm1toN(const Rect& for (uint sy = 0, dy = 0; dy < dr.h; sy += N1, dy += N) { for (uint sx = 0, dx = 0; dx < dr.w; sx += N1, dx += N) { const uint32 *s0i = (const uint32 *)src.GetPtr(sx, sy); - uint32 *d = (uint32 *)GetPtr(dx, dy); + uint32 *d = (uint32 *)GetPtr(dr.x + dx, dr.y + dy); for (uint ty = 0; ty < N; ty++) { const uint32 *s1 = (const uint32 *)(s0i + ty * sstride32); const uint32 *s0 = (const uint32 *)(s1 - sstride32); @@ -797,7 +797,7 @@ BitmapRGBX::DrawBitmapMean(const Rect& d RectF sr(0, 0, tx, ty); for (uint y = 0; y < dr.h; y++) { - uint32 *d = (uint32 *)GetRowPtr(y); + uint32 *d = (uint32 *)GetPtr(dr.x, dr.y + y); sr.x = 0; for (uint x = 0; x < dr.w; x++) { Color c = src.Mean(sr);