renamed all Rect2.pos to Rect2.position

This commit is contained in:
alexholly 2017-06-04 00:25:13 +02:00
parent 69bec86028
commit a3c90b0293
84 changed files with 685 additions and 685 deletions

View file

@ -67,9 +67,9 @@ void BitMap::set_bit_rect(const Rect2 &p_rect, bool p_value) {
Rect2i current = Rect2i(0, 0, width, height).clip(p_rect);
uint8_t *data = bitmask.ptr();
for (int i = current.pos.x; i < current.pos.x + current.size.x; i++) {
for (int i = current.position.x; i < current.position.x + current.size.x; i++) {
for (int j = current.pos.y; j < current.pos.y + current.size.y; j++) {
for (int j = current.position.y; j < current.position.y + current.size.y; j++) {
int ofs = width * j + i;
int bbyte = ofs / 8;