Display full image in main window preview
This commit is contained in:
@@ -2,6 +2,7 @@ import { VRAMArea } from "../vram-components.slint";
|
||||
import { Button, ComboBox, GroupBox, StandardListView, LineEdit, ScrollView, Slider } from "std-widgets.slint";
|
||||
|
||||
struct VRAMImage {
|
||||
full_img: image,
|
||||
img: image,
|
||||
x: int,
|
||||
y: int,
|
||||
@@ -81,7 +82,7 @@ export component MainTab inherits Rectangle {
|
||||
if event.kind == PointerEventKind.down {
|
||||
cur_sel_x.text = parent.img_x;
|
||||
cur_sel_y.text = parent.img_y;
|
||||
cur_sel_img.source = parent.img;
|
||||
cur_sel_img.source = vram-image.full_img;
|
||||
encoding_text.encoding_str = vram-image.encoding_str;
|
||||
cur_sel_img.visible = true;
|
||||
|
||||
@@ -155,7 +156,7 @@ export component MainTab inherits Rectangle {
|
||||
current-item-changed(current-item) => {
|
||||
cur_sel_x.text = root.vram_images[current-item].x;
|
||||
cur_sel_y.text = root.vram_images[current-item].y;
|
||||
cur_sel_img.source = root.vram_images[current-item].img;
|
||||
cur_sel_img.source = root.vram_images[current-item].full_img;
|
||||
encoding_text.encoding_str = root.vram_images[current-item].encoding_str;
|
||||
cur_sel_img.visible = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user