equal
deleted
inserted
replaced
1879 int x2 = _thd.selstart.x; |
1879 int x2 = _thd.selstart.x; |
1880 int y2 = _thd.selstart.y; |
1880 int y2 = _thd.selstart.y; |
1881 x1 &= ~0xF; |
1881 x1 &= ~0xF; |
1882 y1 &= ~0xF; |
1882 y1 &= ~0xF; |
1883 |
1883 |
1884 if (x1 >= x2) intswap(x1,x2); |
1884 if (x1 >= x2) Swap(x1, x2); |
1885 if (y1 >= y2) intswap(y1,y2); |
1885 if (y1 >= y2) Swap(y1, y2); |
1886 _thd.new_pos.x = x1; |
1886 _thd.new_pos.x = x1; |
1887 _thd.new_pos.y = y1; |
1887 _thd.new_pos.y = y1; |
1888 _thd.new_size.x = x2 - x1 + TILE_SIZE; |
1888 _thd.new_size.x = x2 - x1 + TILE_SIZE; |
1889 _thd.new_size.y = y2 - y1 + TILE_SIZE; |
1889 _thd.new_size.y = y2 - y1 + TILE_SIZE; |
1890 _thd.new_drawstyle = _thd.next_drawstyle; |
1890 _thd.new_drawstyle = _thd.next_drawstyle; |