diff options
author | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-18 10:53:35 +0000 |
---|---|---|
committer | untir-l <87096069+untir-l@users.noreply.github.com> | 2022-02-25 09:56:49 +0000 |
commit | bc38b4de9a014e96122b15d8330d5c8da2ad4d71 (patch) | |
tree | 9481232705a609d2557f2a53fd911884621bcbb8 /hitomezashi.h | |
parent | 7bfdc9e2e8e27bfcfb42dba4833c4afc92b368d9 (diff) | |
download | hitomezashi-bc38b4de9a014e96122b15d8330d5c8da2ad4d71.tar hitomezashi-bc38b4de9a014e96122b15d8330d5c8da2ad4d71.tar.gz hitomezashi-bc38b4de9a014e96122b15d8330d5c8da2ad4d71.zip |
Use clang-format
Diffstat (limited to 'hitomezashi.h')
-rw-r--r-- | hitomezashi.h | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/hitomezashi.h b/hitomezashi.h index acd8ab9..e0782eb 100644 --- a/hitomezashi.h +++ b/hitomezashi.h @@ -4,43 +4,37 @@ #include "SDL.h" struct Hitomezashi_State { - int x_pattern_len; - int y_pattern_len; + int x_pattern_len; + int y_pattern_len; - char *x_pattern; - char *y_pattern; + char *x_pattern; + char *y_pattern; - int gap; + int gap; - int line_thickness; + int line_thickness; - int output_width; - int output_height; + int output_width; + int output_height; - SDL_Surface *surface; + SDL_Surface *surface; }; enum Hitomezashi_State_Init_Result { - Hitomezashi_State_Init_Result_Success, - Hitomezashi_State_Init_Result_Err_Create_Surface, + Hitomezashi_State_Init_Result_Success, + Hitomezashi_State_Init_Result_Err_Create_Surface, }; - enum Hitomezashi_Draw_Result { - Hitomezashi_Draw_Result_Success, - Hitomezashi_Draw_Result_Err_Lock_Surface, + Hitomezashi_Draw_Result_Success, + Hitomezashi_Draw_Result_Err_Lock_Surface, }; - enum Hitomezashi_State_Init_Result -hitomezashi_state_init( - struct Hitomezashi_State *state, - int x_pattern_len, int y_pattern_len, - char *x_pattern, char *y_pattern, - int gap, int line_thickness); - +hitomezashi_state_init(struct Hitomezashi_State *state, int x_pattern_len, + int y_pattern_len, char *x_pattern, char *y_pattern, + int gap, int line_thickness); -enum Hitomezashi_Draw_Result -hitomezashi_draw(struct Hitomezashi_State *state); +enum Hitomezashi_Draw_Result hitomezashi_draw(struct Hitomezashi_State *state); #endif // HITOMEZASHI_HITOMEZASHI_H |