Normal count type in Color_Table
This commit is contained in:
parent
be3895b90f
commit
d72636138d
|
@ -1643,7 +1643,7 @@ CUSTOM_DOC("Parse the current buffer as a theme file and add the theme to the th
|
|||
if (color_table.count < defcolor_line_numbers_text){
|
||||
problem_score = defcolor_line_numbers_text - color_table.count;
|
||||
}
|
||||
for (u32 i = 0; i < color_table.count; i += 1){
|
||||
for (i32 i = 0; i < color_table.count; i += 1){
|
||||
if (color_table.arrays[i].count == 0){
|
||||
problem_score += 1;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* Default color slots
|
||||
*/
|
||||
|
||||
|
@ -94,7 +94,7 @@ make_color_table(Application_Links *app, Arena *arena){
|
|||
result.arrays = push_array(arena, Color_Array, result.count);
|
||||
u32 *dummy = push_array(arena, u32, 1);
|
||||
*dummy = 0xFF990099;
|
||||
for (u32 i = 0; i < result.count; i += 1){
|
||||
for (i32 i = 0; i < result.count; i += 1){
|
||||
result.arrays[i].vals = dummy;
|
||||
result.arrays[i].count = 1;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ struct Color_Array{
|
|||
api(custom)
|
||||
struct Color_Table{
|
||||
Color_Array *arrays;
|
||||
u32 count;
|
||||
i32 count;
|
||||
};
|
||||
|
||||
api(custom)
|
||||
|
|
Loading…
Reference in New Issue