晕,目前不支持是因为还没有完善
使用双缓冲在 RGE 里面很容易实现,在 RGE 里面有例子代码。大致的方法如下:
+-------------------------------------------------------------------------+
BMP backscreen = {0};
createbmp(&VESASCREEN);
backscreen.pmemdrv = &EMS_MEM_DRV; /* 使用 EMS 内存 */
backscreen.width = VESASCREEN.width;
backscreen.height = VESASCREEN.height;
backscreen.pixelbytes = VESASCREEN.pixelbytes;
createbmp(&backscreen); /* 创建缓冲位图 */
setcolor(RGB(0, 255, 0));
line(&backscreen, 10, 10, 100, 100); /* 在缓冲位图上绘制图形 */
fastputbmp(&VESASCREEN, 0, 0, &backscreen); /* 将缓冲位图刷新到屏幕上 */
destroybmp(&backscreen);
destroybmp(&VESASCREEN);
+-------------------------------------------------------------------------+