quakeforge/ruamoko/gui/Size.r
Bill Currie cdc1f0c5e7 [libr] Treat ruamoko headers as system headers
Now that qfcc actually supports them properly.
2020-03-03 15:24:41 +09:00

19 lines
304 B
R

#include <gui/Size.h>
Size makeSize (int width, int height)
{
Size s = {width, height};
return s;
}
Size addSize (Size a, Size b)
{
Size c = {a.width + b.width, a.height + b.height};
return c;
}
Size subtractSize (Size a, Size b)
{
Size c = {a.width - b.width, a.height - b.height};
return c;
}