|
請問一下,我在此範例中寫........
display = alt_video_display_init( LCD_SGDMA_NAME,
800,//ALT_VIDEO_DISPLAY_COLS, // int width(640)
600,//ALT_VIDEO_DISPLAY_ROWS, // int height(480)
32,//ALT_VIDEO_DISPLAY_COLOR_DEPTH,
ALT_VIDEO_DISPLAY_USE_HEAP,
ALT_VIDEO_DISPLAY_USE_HEAP,
2 );
vid_draw_round_corner_box ( 100, 100, 200, 200, 10, COLOR_G, DO_FILL, display);
while(1)
{
vid_draw_round_corner_box ( 440, 10, 520, 80, 10, COLOR_R, DO_FILL, display);
alt_video_display_register_written_buffer( display );
while(alt_video_display_buffer_is_available(display) != 0);
}
會有很大的閃爍問題,請問是哪裡出錯了呢? |
|