sdl-1.2: implement rect_init and semitrans_rect_init
This commit is contained in:
parent
c5434beff1
commit
c8cce5ea87
|
@ -2,8 +2,10 @@
|
||||||
#include <gfx/port.h>
|
#include <gfx/port.h>
|
||||||
#include <sdl-1.2/gfx_private.h>
|
#include <sdl-1.2/gfx_private.h>
|
||||||
#include <SDL/SDL.h>
|
#include <SDL/SDL.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void rect_sort(struct rect *const r)
|
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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue