Changeset 450:fe6546d07d5e


Ignore:
Timestamp:
09/07/13 13:12:02 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Combine zoom and offset more correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r449 r450  
    431431            return (0, 0)
    432432        # Apply zoom_factor
     433        pos = pos[0] + self.pos[0], pos[1] + self.pos[1]
    433434        zoomed = (pos[0] * self._zoom_factor, pos[1] * self._zoom_factor)
    434         return int(zoomed[0] + self.pos[0]), int(zoomed[1] + self.pos[1])
     435        return int(zoomed[0]), int(zoomed[1])
    435436
    436437    def _move_view(self, offset):
Note: See TracChangeset for help on using the changeset viewer.