mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 16:43:58 +08:00
bugfixing: Bad checking pci_accel_driver in FBCON engine
This commit is contained in:
@@ -707,7 +707,8 @@ static GAL_Surface *FB_SetVideoMode(_THIS, GAL_Surface *current,
|
||||
}
|
||||
|
||||
#ifdef _MGHAVE_PCIACCESS
|
||||
if (pci_accel_driver) /* Init accelerated hardware via pciaccess */
|
||||
/* BUGFIXING (VM 2020-03-12): merged from 5.0.0 */
|
||||
if (pci_accel_driver > 0) /* Init accelerated hardware via pciaccess */
|
||||
FB_InitPCIAccelDriver (this, current);
|
||||
#endif
|
||||
|
||||
@@ -1196,7 +1197,8 @@ static void FB_VideoQuit(_THIS)
|
||||
}
|
||||
|
||||
#ifdef _MGHAVE_PCIACCESS
|
||||
if (pci_accel_driver) {
|
||||
/* BUGFIXING (VM 2020-03-12): merged from 5.0.0 */
|
||||
if (pci_accel_driver > 0) {
|
||||
FB_CleanupPCIAccelDriver (this);
|
||||
pci_accel_driver = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user