Revision 104
stuff
graphics.c | ||
---|---|---|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
int (vg_draw_hline)(uint16_t x, uint16_t y, uint16_t len, uint32_t color){ |
112 |
|
|
113 |
//uint8_t color8 = color; |
|
114 |
uint8_t *p = video_mem; |
|
115 |
p += y*1024+x; |
|
116 |
//*(p++) = color8; |
|
117 |
//*(p++) = color8; |
|
118 |
//*(p++) = color8; |
|
112 | 119 |
/* |
113 |
uint8_t color8 = color; |
|
120 |
for(void *p = video_mem; p-video_mem < len; ++p){ |
|
121 |
*p = color; |
|
122 |
} |
|
123 |
*/ |
|
124 |
/* |
|
114 | 125 |
for(uint16_t l = 0; l < len; ++l){ |
115 |
*(video_mem+y*1024+x+len) = color8; |
|
116 |
}*/ |
|
126 |
*((uint8_t*)(video_mem)+y*1024+x+len) = color8; |
|
127 |
} |
|
128 |
*/ |
|
117 | 129 |
return 0; |
118 | 130 |
} |
Also available in: Unified diff