179 {
180
182
184
186
188
189 SDL_Point points[3];
190
191 points[0].x = frame.x;
192 points[0].y = frame.y + frame.h;
193
194 points[1].x = frame.x + frame.w;
195 points[1].y = frame.y + frame.h;
196
197 points[2].x = frame.x + frame.w;
198 points[2].y = frame.y;
199
201
202 points[0].x = frame.x;
203 points[0].y = frame.y + frame.h;
204
205 points[1].x = frame.x;
206 points[1].y = frame.y;
207
208 points[2].x = frame.x + frame.w;
209 points[2].y = frame.y;
210
212
214
215 SDL_Point points[3];
216
217 points[0].x = frame.x;
218 points[0].y = frame.y + frame.h;
219
220 points[1].x = frame.x + frame.w;
221 points[1].y = frame.y + frame.h;
222
223 points[2].x = frame.x + frame.w;
224 points[2].y = frame.y;
225
227
228 points[0].x = frame.x;
229 points[0].y = frame.y + frame.h;
230
231 points[1].x = frame.x;
232 points[1].y = frame.y;
233
234 points[2].x = frame.x + frame.w;
235 points[2].y = frame.y;
236
238 }
239
242 }
243}
static void drawLines(const Renderer *self, const SDL_Point *points, size_t count, const SDL_Color *color)
static void drawRect(const Renderer *self, const SDL_Rect *rect, const SDL_Color *color)
static SDL_Rect renderFrame(const View *self)