Revision 110
something
lab5/errors.h | ||
---|---|---|
13 | 13 |
INVALID_COMMAND, /* @brief Invalid Command issued */ |
14 | 14 |
INVALID_STATE, /* @brief State machine reached an invalid state */ |
15 | 15 |
BIOS_CALL_ERROR, /* @brief Error upon BIOS call */ |
16 |
OUT_OF_RANGE, |
|
16 |
OUT_OF_RANGE, /* @brief Accessing area out of range of memory */
|
|
17 | 17 |
OTHER_ERROR /* @brief Unspecified error */ |
18 | 18 |
}; |
19 | 19 |
|
lab5/graphics.c | ||
---|---|---|
128 | 128 |
if ((r = set_pixel(x + i, y, color))) return r; |
129 | 129 |
|
130 | 130 |
return SUCCESS; |
131 |
|
|
132 |
//uint8_t color8 = color; |
|
133 |
//set_pixel(x,y,color); |
|
134 |
//set_pixel(x+1,y,color); |
|
135 |
//set_pixel(x+2,y,color); |
|
136 |
//*(p++) = color8; |
|
137 |
//*(p++) = color8; |
|
138 |
//*(p++) = color8; |
|
139 |
/* |
|
140 |
for(void *p = video_mem; p-video_mem < len; ++p){ |
|
141 |
*p = color; |
|
142 |
} |
|
143 |
*/ |
|
144 |
/* |
|
145 |
for(uint16_t l = 0; l < len; ++l){ |
|
146 |
*((uint8_t*)(video_mem)+y*1024+x+len) = color8; |
|
147 |
} |
|
148 |
*/ |
|
149 | 131 |
} |
150 | 132 |
|
151 | 133 |
int (vg_draw_rectangle)(uint16_t x, uint16_t y,uint16_t width, uint16_t height, uint32_t color) { |
Also available in: Unified diff