Customized fork of github.com/rxi/lite

more formatting

+9 -1
.editorconfig
··· 1 1 root = true 2 2 3 - [*.{c,h,lua}] 3 + [*.{c,h}] 4 4 charset = utf-8 5 5 end_of_line = lf 6 6 indent_style = tab 7 7 insert_final_newline = true 8 8 trim_trailing_whitespace = true 9 + 10 + [*.{lua}] 11 + charset = utf-8 12 + end_of_line = lf 13 + indent_style = space 14 + indent_size = 2 15 + insert_final_newline = true 16 + trim_trailing_whitespace = true
+2
readme
··· 27 27 28 28 License 29 29 ------- 30 + 31 + MIT License
+1 -1
src/main.c
··· 56 56 { 57 57 # ifdef _WIN32 58 58 HINSTANCE lib = LoadLibrary("user32.dll"); 59 - int (*SetProcessDPIAware)() = (void*) GetProcAddress(lib, "SetProcessDPIAware"); 59 + int (*SetProcessDPIAware)() = (void *)GetProcAddress(lib, "SetProcessDPIAware"); 60 60 SetProcessDPIAware(); 61 61 # endif 62 62
+1 -1
src/rencache.c
··· 117 117 } 118 118 else 119 119 { 120 - *prev = (Command *)(((char*) *prev) + (*prev)->size); 120 + *prev = (Command *)(((char *)*prev) + (*prev)->size); 121 121 } 122 122 123 123 return *prev != ((Command *)(command_buf + command_buf_idx));
+1 -1
src/renderer.c
··· 162 162 /* convert 8bit data to 32bit */ 163 163 for (int i = width * height - 1; i >= 0; i--) 164 164 { 165 - uint8_t n = *((uint8_t*) set->image->pixels + i); 165 + uint8_t n = *((uint8_t *)set->image->pixels + i); 166 166 set->image->pixels[i] = (RenColor) { .r = 255, .g = 255, .b = 255, .a = n }; 167 167 } 168 168