Revision 178
minor fixes
graph.c | ||
---|---|---|
1 |
#include <lcom/lcf.h> |
|
2 |
|
|
1 | 3 |
#include "graph.h" |
2 | 4 |
#include "graph_macros.h" |
3 | 5 |
#include "errors.h" |
4 | 6 |
|
5 |
#include <lcom/lcf.h> |
|
6 |
|
|
7 | 7 |
#include <stdio.h> |
8 | 8 |
|
9 | 9 |
/// MACROS |
... | ... | |
55 | 55 |
//} |
56 | 56 |
|
57 | 57 |
/// MEMORY |
58 |
static void *video_mem = NULL; /** @brief Frame-buffer VM address. */
|
|
58 |
static uint8_t *video_mem = NULL; /** @brief Frame-buffer VM address. */
|
|
59 | 59 |
static uint8_t *video_buf = NULL; /** @brief Primary buffer for drawing before copying to video_mem. */ |
60 | 60 |
static mmap_t mem_map; |
61 | 61 |
static int (graph_free_memory)(void) { |
... | ... | |
276 | 276 |
} |
277 | 277 |
|
278 | 278 |
int (graph_draw)(void){ |
279 |
memcpy((uint8_t*)video_mem, video_buf, graph_get_vram_size());
|
|
279 |
memcpy(video_mem, video_buf, graph_get_vram_size()); |
|
280 | 280 |
return 0; |
281 | 281 |
} |
282 | 282 |
|
Also available in: Unified diff