dont remember
authorhgn <hgodden00@gmail.com>
Mon, 15 May 2023 02:16:43 +0000 (03:16 +0100)
committerhgn <hgodden00@gmail.com>
Mon, 15 May 2023 02:16:43 +0000 (03:16 +0100)
submodules/SDL
vg_imgui.h

index 06492c598158cf825a18aececaf7511d7fd04f48..eef4d3c86a653f91b7221c80809ba8ab56f94cf1 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 06492c598158cf825a18aececaf7511d7fd04f48
+Subproject commit eef4d3c86a653f91b7221c80809ba8ab56f94cf1
index 244a3f7e5f068917cc153cf5fc8c63cd578218a3..58a2fd4ab7e85504ec2e2f38d513dbcb8fc845b8 100644 (file)
@@ -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 )
 {