VirtualBox

Ignore:
Timestamp:
Oct 29, 2018 2:14:22 PM (6 years ago)
Author:
vboxsync
Message:

BIOS: Added custom video mode set function not limited by the list of available VBE modes (bugref:9273).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/BIOS/vgabios.c

    r67853 r75149  
    21082108extern void vbe_biosfn_save_restore_state(uint16_t STACK_BASED *AX, uint16_t CX, uint16_t DX, uint16_t ES, uint16_t STACK_BASED *BX);
    21092109extern void vbe_biosfn_get_set_scanline_length(uint16_t STACK_BASED *AX, uint16_t STACK_BASED *BX, uint16_t STACK_BASED *CX, uint16_t STACK_BASED *DX);
     2110extern void private_biosfn_custom_mode(uint16_t STACK_BASED *AX, uint16_t STACK_BASED *BX, uint16_t STACK_BASED *CX, uint16_t STACK_BASED *DX);
     2111
    21102112
    21112113// --------------------------------------------------------------------------------------------
     
    23352337          }
    23362338        break;
     2339   case 0x56:
     2340     if (vbe_has_vbe_display()) {
     2341       switch(GET_AL())
     2342       {
     2343         case 0x42:
     2344           private_biosfn_custom_mode(&AX,&BX,&CX,&DX);
     2345           break;
     2346         default:
     2347           AX=0x0100;
     2348           break;
     2349       }
     2350     } else {
     2351         // No VBE display
     2352         AX=0x0100;
     2353     }
     2354     break;
    23372355#endif
    23382356
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette