Commit fe6b353f authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug in the initialization of the framebuffer structure.

parent e2bcc8f4
......@@ -17,12 +17,12 @@ void frame_buffer_init(TFrameBuffer *fb,TMemory *memory,unsigned short int ram_b
unsigned int i;
/* initialize internal data */
frame_buffer_set_num_rows(fb,DEFAULT_FRAME_BUFFER_CONTROL_NUM_ROWS);
frame_buffer_set_pixels_per_row(fb,DEFAULT_FRAME_BUFFER_CONTROL_NUM_PIXELS);
frame_buffer_set_num_buffers(fb,DEFAULT_FRAME_BUFFER_CONTROL_NUM_BUFFERS);
fb->ram_base_address=ram_base_address;
fb->eeprom_base_address=eeprom_base_address;
fb->memory=memory;
frame_buffer_set_num_rows(fb,DEFAULT_FRAME_BUFFER_CONTROL_NUM_ROWS);
frame_buffer_set_pixels_per_row(fb,DEFAULT_FRAME_BUFFER_CONTROL_NUM_PIXELS);
frame_buffer_set_num_buffers(fb,DEFAULT_FRAME_BUFFER_CONTROL_NUM_BUFFERS);
for(i=0;i<FB_MAX_BUFFER_LEN;i++)
fb->pixel_buffer[i]=0x00;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment