Skip to content

Commit

Permalink
Fix popup scale
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jul 11, 2020
1 parent 1ea0fb0 commit 51a863b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/zui/Nodes.hx
Expand Up @@ -731,7 +731,7 @@ class Nodes {
}

function rgbaPopup(ui: Zui, nhandle: zui.Zui.Handle, val: kha.arrays.Float32Array, x: Int, y: Int) {
popup(x, y, Std.int(140 * scaleFactor), Std.int(ui.ELEMENT_H() * 9), function(ui: Zui) {
popup(x, y, Std.int(140 * scaleFactor), Std.int(ui.t.ELEMENT_H * 9), function(ui: Zui) {
nhandle.color = kha.Color.fromFloats(val[0], val[1], val[2]);
Ext.colorWheel(ui, nhandle, false, null, false);
val[0] = nhandle.color.R; val[1] = nhandle.color.G; val[2] = nhandle.color.B;
Expand Down

0 comments on commit 51a863b

Please sign in to comment.