This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
17,170 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
#include "odroid_system.h" | ||
#include "odroid_display.h" | ||
#include "gw_lcd.h" | ||
|
||
short odroid_display_queue_update(odroid_video_frame_t *frame, odroid_video_frame_t *previousFrame) | ||
{ | ||
return SCREEN_UPDATE_FULL; | ||
} | ||
|
||
void odroid_display_write_rect(short left, short top, short width, short height, short stride, const uint16_t* buffer) | ||
{ | ||
pixel_t *dest = active_framebuffer ? framebuffer2 : framebuffer1; | ||
|
||
for (short y = 0; y < height; y++) { | ||
pixel_t *dest_row = &dest[(y + top) * GW_LCD_WIDTH + left]; | ||
memcpy(dest_row, &buffer[y * stride], width * sizeof(pixel_t)); | ||
} | ||
} | ||
|
||
// Same as odroid_display_write_rect but stride is assumed to be width (for backwards compat) | ||
void odroid_display_write(short left, short top, short width, short height, const uint16_t* buffer) | ||
{ | ||
odroid_display_write_rect(left, top, width, height, width, buffer); | ||
} | ||
|
||
void odroid_display_force_refresh(void) | ||
{ | ||
// forceVideoRefresh = true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.