projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
435cd7d
)
dont remember
author
hgn
<hgodden00@gmail.com>
Mon, 15 May 2023 02:16:43 +0000
(
03:16
+0100)
committer
hgn
<hgodden00@gmail.com>
Mon, 15 May 2023 02:16:43 +0000
(
03:16
+0100)
submodules/SDL
patch
|
blob
|
history
vg_imgui.h
patch
|
blob
|
history
diff --git
a/submodules/SDL
b/submodules/SDL
index 06492c598158cf825a18aececaf7511d7fd04f48..eef4d3c86a653f91b7221c80809ba8ab56f94cf1 160000
(submodule)
--- a/
submodules/SDL
+++ b/
submodules/SDL
@@
-1
+1
@@
-Subproject commit
06492c598158cf825a18aececaf7511d7fd04f48
+Subproject commit
eef4d3c86a653f91b7221c80809ba8ab56f94cf1
diff --git
a/vg_imgui.h
b/vg_imgui.h
index 244a3f7e5f068917cc153cf5fc8c63cd578218a3..58a2fd4ab7e85504ec2e2f38d513dbcb8fc845b8 100644
(file)
--- a/
vg_imgui.h
+++ b/
vg_imgui.h
@@
-798,6
+798,15
@@
static u32 ui_colourcont( enum ui_scheme_colour id )
else return ui_colour( k_ui_fg+1 );
}
+static void ui_hex_to_norm( u32 hex, v4f norm )
+{
+ norm[0] = ((hex ) & 0xff);
+ norm[1] = ((hex>>8 ) & 0xff);
+ norm[2] = ((hex>>16) & 0xff);
+ norm[3] = ((hex>>24) & 0xff);
+ v4_muls( norm, 1.0f/255.0f, norm );
+}
+
static u32 ui_ntext( ui_rect rect, const char *str, u32 len, ui_px scale,
enum ui_align align, u32 colour )
{