mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
cdc1f0c5e7
Now that qfcc actually supports them properly.
19 lines
304 B
R
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;
|
|
}
|