vm_screen_width_aspect = SCREEN_WIDTH_ASPECT;
vm_screen_height_aspect = SCREEN_HEIGHT_ASPECT;
+ QColor col(0, 0, 0, 255);
//memset(&vm_screen_buffer, 0, sizeof(bitmap_t));
vm_screen_buffer.width = SCREEN_WIDTH;
vm_screen_buffer.height = SCREEN_HEIGHT;
vm_screen_buffer.pImage = QImage(SCREEN_WIDTH, SCREEN_HEIGHT, QImage::Format_ARGB32);
-
+ vm_screen_buffer.pImage.fill(col);
now_rec_video = false;
//pAVIStream = NULL;
//pAVICompressed = NULL;
buffer->width = width;
buffer->height = height;
if((width > buffer->pImage.width()) || (height > buffer->pImage.height())) {
+ QColor col(0, 0, 0, 255);
buffer->pImage = QImage(width, height, QImage::Format_ARGB32);
+ buffer->pImage.fill(col);
}
//printf("%dx%d NULL=%d\n", buffer->pImage.width(), buffer->pImage.height(), buffer->pImage.isNull() ? 1 : 0);
QColor fillcolor;
// draw 7-seg LEDs
scrntype col_h, col_l;
scrntype col[8];
-
+
col_h = RGB_COLOR(255, 0, 0);
col_l = RGB_COLOR(107, 0, 0);
col[0] = RGB_COLOR(82, 8, 16);
-
for(int i = 0; i < 6; i++) {
for(int j = 0; j < 7; j++) {
col[j + 1] = (seg[i][j] > 8) ? col_h : col_l;
col_h = RGB_COLOR(255, 0, 0);
col_l = RGB_COLOR(107, 0, 0);
col[0] = RGB_COLOR(38, 8, 0);
-
+
for(int i = 0; i < 6; i++) {
for(int j = 0; j < 8; j++) {
col[j + 1] = (seg[i][j] > 8) ? col_h : col_l;