- Timestamp:
- Nov 25, 2019 8:32:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS/vgabios.c
r82150 r82154 173 173 bda[BIOSMEM_CHAR_HEIGHT] = 16; 174 174 /* Clear the screen. */ 175 bda[BIOSMEM_VIDEO_CTL] = 0x6 8;175 bda[BIOSMEM_VIDEO_CTL] = 0x60; 176 176 /* Set the basic screen we have. */ 177 177 bda[BIOSMEM_SWITCHES] = 0xf9; … … 520 520 521 521 /* Check if VGA is active. If not, just write the input to the CRTC. */ 522 if ( read_byte(BIOSMEM_SEG, BIOSMEM_VIDEO_CTL) & 8) {522 if (!(read_byte(BIOSMEM_SEG, BIOSMEM_VIDEO_CTL) & 8)) { 523 523 /* Trying to disable the cursor? */ 524 524 if ((CH & 0x60) == 0x20) { … … 852 852 write_byte(BIOSMEM_SEG,BIOSMEM_NB_ROWS,theightm1); 853 853 write_word(BIOSMEM_SEG,BIOSMEM_CHAR_HEIGHT,cheight); 854 write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL,(0x6 8|noclearmem));854 write_byte(BIOSMEM_SEG,BIOSMEM_VIDEO_CTL,(0x60|noclearmem)); 855 855 write_byte(BIOSMEM_SEG,BIOSMEM_SWITCHES,0xF9); 856 856 write_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL,read_byte(BIOSMEM_SEG,BIOSMEM_MODESET_CTL)&0x7f);
Note:
See TracChangeset
for help on using the changeset viewer.