aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/draw.c
blob: 62fd0f8755fe80381bfe3439de5d1a2316b2f49f (plain)
1
2
3
4
5
6
7
8
9
10
#include "../graphics/draw.h"
#include "../sys/core.h"

void draw_box(unsigned short color, unsigned short x, unsigned short y, unsigned short dx, unsigned short dy) {
	for(int i = 0; i < dy; i++) {
		for(int j = 0; j < dx; j++) {
			draw_pix(x+j, y+i, color);
		}
	}
}