4 void Drawing16_Fill_Rectangle(void *vram, uint xsize, uint c, uint x0, uint y0, uint x1, uint y1)
\r
8 //if negative location
\r
9 if((x0 & 0x80000000) != 0 || (y0 & 0x80000000) != 0 || (x1 & 0x80000000) != 0 || (y1 & 0x80000000) != 0){
\r
13 c = RGB_32_To_16(c);
\r
14 for(y = y0; y <= y1; y++){
\r
15 for(x = x0; x <= x1; x++){
\r
16 ((ushort *)vram)[y * xsize + x] = (ushort)c;
\r
22 void Drawing16_Put_Font(void *vram, uint xsize, uint x, uint y, uint c, const uchar *font)
\r
28 //if negative location
\r
29 if((x & 0x80000000) != 0 || (y & 0x80000000) != 0){
\r
33 for (i = 0; i < 16; i++) {
\r
34 p = (ushort *)vram + (y + i) * xsize + x;
\r
36 if ((d & 0x80) != 0) { p[0] = (ushort)c; }
\r
37 if ((d & 0x40) != 0) { p[1] = (ushort)c; }
\r
38 if ((d & 0x20) != 0) { p[2] = (ushort)c; }
\r
39 if ((d & 0x10) != 0) { p[3] = (ushort)c; }
\r
40 if ((d & 0x08) != 0) { p[4] = (ushort)c; }
\r
41 if ((d & 0x04) != 0) { p[5] = (ushort)c; }
\r
42 if ((d & 0x02) != 0) { p[6] = (ushort)c; }
\r
43 if ((d & 0x01) != 0) { p[7] = (ushort)c; }
\r
48 void Drawing16_Put_String(void *vram, uint xsize, uint x, uint y, uint c, const uchar s[])
\r
50 //if negative location
\r
51 if((x & 0x80000000) != 0 || (y & 0x80000000) != 0){
\r
59 c = RGB_32_To_16(c);
\r
60 for(; *s != 0x00; s++){
\r
64 Drawing16_Put_Font(vram, xsize, x, y, c, hankaku + *s * 16);
\r
70 void Drawing16_Draw_Point(void *vram, uint xsize, uint x, uint y, uint c)
\r
72 //if negative location
\r
73 if((x & 0x80000000) != 0 || (y & 0x80000000) != 0){
\r
77 ((ushort *)vram)[y * xsize + x] = RGB_32_To_16(c);
\r