Changeset 40148 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Feb 16, 2012 1:33:48 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76299
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS/vgabios.c
r33656 r40148 844 844 #ifdef VBE 845 845 if (vbe_has_vbe_display()) { 846 dispi_set_enable(VBE_DISPI_DISABLED); 846 // Force controller into VGA mode 847 outb(VGAREG_SEQU_ADDRESS,7); 848 outb(VGAREG_SEQU_DATA,0x00); 847 849 } 848 850 #endif // def VBE -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r39425 r40148 350 350 (uint8_t)~0xff, 351 351 (uint8_t)~0xff, 352 (uint8_t)~0x0 0,352 (uint8_t)~0x01, 353 353 }; 354 354 … … 725 725 Log2(("vga: write SR%x = 0x%02x\n", s->sr_index, val)); 726 726 s->sr[s->sr_index] = val & sr_mask[s->sr_index]; 727 /* Allow SR07 to disable VBE. */ 728 if (s->sr_index == 0x07 && !(val & 1)) 729 { 730 s->vbe_regs[VBE_DISPI_INDEX_ENABLE] = VBE_DISPI_DISABLED; 731 s->bank_offset = 0; 732 } 727 733 if (s->fRealRetrace && s->sr_index == 0x01) 728 734 vga_update_retrace_state(s); … … 1091 1097 s->sr[4] |= 0x08; /* set chain 4 mode */ 1092 1098 s->sr[2] |= 0x0f; /* activate all planes */ 1099 /* Indicate non-VGA mode in SR07. */ 1100 s->sr[7] |= 1; 1093 1101 } 1094 1102 s->gr[0x05] = (s->gr[0x05] & ~0x60) | (shift_control << 5); … … 4142 4150 * @param pszTitle The title text, NULL if none. 4143 4151 */ 4144 static void vgaInfoTextPrintSeparatorLine(PCDBGFINFOHLP pHlp, uint32_t cCols, const char *pszTitle)4152 static void vgaInfoTextPrintSeparatorLine(PCDBGFINFOHLP pHlp, size_t cCols, const char *pszTitle) 4145 4153 { 4146 4154 if (pszTitle) … … 4154 4162 else 4155 4163 { 4156 uint32_t cchLeft = (cCols - cchTitle - 2) / 2;4164 size_t cchLeft = (cCols - cchTitle - 2) / 2; 4157 4165 cCols -= cchLeft + cchTitle + 2; 4158 4166 while (cchLeft-- > 0)
Note:
See TracChangeset
for help on using the changeset viewer.