sdl-1.2: implement rect_init and semitrans_rect_init

This commit is contained in:
Xavier Del Campo Romero 2022-02-24 21:18:25 +01:00
parent c5434beff1
commit c8cce5ea87
1 changed files with 9 additions and 4 deletions

View File

@ -2,8 +2,10 @@
#include <gfx/port.h>
#include <sdl-1.2/gfx_private.h>
#include <SDL/SDL.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
void rect_sort(struct rect *const r)
{
@ -25,10 +27,13 @@ void rect_sort(struct rect *const r)
}
}
void semitrans_rect_init(struct rect *const r)
{
}
void rect_init(struct rect *const r)
{
memset(r, 0, sizeof *r);
}
void semitrans_rect_init(struct rect *const r)
{
rect_init(r);
r->stp = true;
}