if (parent_graphics != null) {
int x = pos_x;
int y = pos_y;
- int width = bitmap_width;
- int height = bitmap_height;
- if (pos_wraparound != 0 && x < 0) x += parent_graphics.bitmap_width;
- if (pos_wraparound != 0 && y < 0) y += parent_graphics.bitmap_height;
- if (pos_wraparound != 0 && width < 0) width += parent_graphics.bitmap_width;
- if (pos_wraparound != 0 && height < 0) height += parent_graphics.bitmap_height;
- draw_canvas.invalidate(x,y,x+w,y+h);
+ int width = bitmap_w;
+ int height = bitmap_h;
+ if (pos_wraparound != 0 && x < 0) x += parent_graphics.bitmap_w;
+ if (pos_wraparound != 0 && y < 0) y += parent_graphics.bitmap_h;
+ if (pos_wraparound != 0 && width < 0) width += parent_graphics.bitmap_w;
+ if (pos_wraparound != 0 && height < 0) height += parent_graphics.bitmap_h;
+ view.invalidate(x,y,x+width,y+height);
}
}
}