Support loading and displaying of image palette #16

Merged
jaby merged 17 commits from topic/jb/tim_tool/PaletteSupport into main 2025-03-06 18:11:51 +00:00
1 changed files with 5 additions and 5 deletions
Showing only changes of commit e25cc7ba38 - Show all commits

View File

@ -60,14 +60,14 @@ export component MainTab inherits Rectangle {
scale: test_scale;
TouchArea {
x: (parent.img_x + self.lines_crossed_x())*1px;
y: (parent.img_y + self.lines_crossed_y())*1px;
width: (parent.img.width + self.lines_crossed_width())*1px;
height: (parent.img.height + self.lines_crossed_height())*1px;
x: ((parent.img_x + self.lines_crossed_x())*1px)*test_scale;
y: ((parent.img_y + self.lines_crossed_y())*1px)*test_scale;
width: ((parent.img.width + self.lines_crossed_width())*1px)*test_scale;
height: ((parent.img.height + self.lines_crossed_height())*1px)*test_scale;
mouse-cursor: grab;
moved => {
self.mouse-cursor = MouseCursor.grabbing;
root.move_vram_image(i, (self.mouse-x - self.pressed-x)/1px, (self.mouse-y - self.pressed-y)/1px);
root.move_vram_image(i, ((self.mouse-x - self.pressed-x)/test_scale)/1px, ((self.mouse-y - self.pressed-y)/test_scale)/1px);
cur_sel_x.text = parent.img_x;
cur_sel_y.text = parent.img_y;
}