33
44MIT License
55
6- Copyright (c) 2018-2023 Mika Tuupola
6+ Copyright (c) 2018-2026 Mika Tuupola
77
88Permission is hereby granted, free of charge, to any person obtaining a copy
99of this software and associated documentation files (the "Software"), to deal
@@ -72,8 +72,7 @@ hagl_draw_rectangle_xyxy(void const *surface, int16_t x0, int16_t y0, int16_t x1
7272 * @param color
7373 */
7474static void inline
75- hagl_draw_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , hagl_color_t color )
76- {
75+ hagl_draw_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , hagl_color_t color ) {
7776 hagl_draw_rectangle_xyxy (surface , x0 , y0 , x1 , y1 , color );
7877}
7978
@@ -90,8 +89,7 @@ hagl_draw_rectangle(void const *surface, int16_t x0, int16_t y0, int16_t x1, int
9089 * @param color
9190 */
9291static void inline
93- hagl_draw_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , hagl_color_t color )
94- {
92+ hagl_draw_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , hagl_color_t color ) {
9593 hagl_draw_rectangle_xyxy (surface , x0 , y0 , x0 + width - 1 , y0 + height - 1 , color );
9694};
9795
@@ -123,8 +121,7 @@ hagl_fill_rectangle_xyxy(void const *surface, int16_t x0, int16_t y0, int16_t x1
123121 * @param color
124122 */
125123static void inline
126- hagl_fill_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , hagl_color_t color )
127- {
124+ hagl_fill_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , hagl_color_t color ) {
128125 hagl_fill_rectangle_xyxy (surface , x0 , y0 , x1 , y1 , color );
129126}
130127
@@ -141,8 +138,7 @@ hagl_fill_rectangle(void const *surface, int16_t x0, int16_t y0, int16_t x1, int
141138 * @param color
142139 */
143140static void inline
144- hagl_fill_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , hagl_color_t color )
145- {
141+ hagl_fill_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , hagl_color_t color ) {
146142 hagl_fill_rectangle_xyxy (surface , x0 , y0 , x0 + width - 1 , y0 + height - 1 , color );
147143};
148144
@@ -176,8 +172,7 @@ hagl_draw_rounded_rectangle_xyxy(void const *surface, int16_t x0, int16_t y0, in
176172 * @param color
177173 */
178174static void inline
179- hagl_draw_rounded_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , int16_t r , hagl_color_t color )
180- {
175+ hagl_draw_rounded_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , int16_t r , hagl_color_t color ) {
181176 hagl_draw_rounded_rectangle_xyxy (surface , x0 , y0 , x1 , y1 , r , color );
182177}
183178
@@ -195,8 +190,7 @@ hagl_draw_rounded_rectangle(void const *surface, int16_t x0, int16_t y0, int16_t
195190 * @param color
196191 */
197192static void inline
198- hagl_draw_rounded_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , int16_t r , hagl_color_t color )
199- {
193+ hagl_draw_rounded_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , int16_t r , hagl_color_t color ) {
200194 hagl_draw_rounded_rectangle_xyxy (surface , x0 , y0 , x0 + width - 1 , y0 + height - 1 , r , color );
201195}
202196
@@ -230,8 +224,7 @@ hagl_fill_rounded_rectangle_xyxy(void const *surface, int16_t x0, int16_t y0, in
230224 * @param color
231225 */
232226static void inline
233- hagl_fill_rounded_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , int16_t r , hagl_color_t color )
234- {
227+ hagl_fill_rounded_rectangle (void const * surface , int16_t x0 , int16_t y0 , int16_t x1 , int16_t y1 , int16_t r , hagl_color_t color ) {
235228 hagl_fill_rounded_rectangle_xyxy (surface , x0 , y0 , x1 , y1 , r , color );
236229}
237230
@@ -249,8 +242,7 @@ hagl_fill_rounded_rectangle(void const *surface, int16_t x0, int16_t y0, int16_t
249242 * @param color
250243 */
251244static void inline
252- hagl_fill_rounded_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , int16_t r , hagl_color_t color )
253- {
245+ hagl_fill_rounded_rectangle_xywh (void const * surface , int16_t x0 , int16_t y0 , uint16_t width , uint16_t height , int16_t r , hagl_color_t color ) {
254246 hagl_fill_rounded_rectangle_xyxy (surface , x0 , y0 , x0 + width - 1 , y0 + height - 1 , r , color );
255247}
256248
@@ -259,4 +251,4 @@ hagl_fill_rounded_rectangle_xywh(void const *surface, int16_t x0, int16_t y0, ui
259251}
260252#endif /* __cplusplus */
261253
262- #endif /* _HAGL_RECTANGLE_H */
254+ #endif /* _HAGL_RECTANGLE_H */
0 commit comments