]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootPayloadPkg/FbGop/FbGop.c
CorebootPayloadPkg: Use correct BytesPerScanLine
[mirror_edk2.git] / CorebootPayloadPkg / FbGop / FbGop.c
index 37d6def7f780ef1255ace3f4808f33daee67f130..679061703358427fb367736fc8444ef8342e9d74 100644 (file)
@@ -822,7 +822,7 @@ FbGopCheckForVbe (
   BitsPerPixel         = pFbInfo->BitsPerPixel;\r
   HorizontalResolution = pFbInfo->HorizontalResolution;\r
   VerticalResolution   = pFbInfo->VerticalResolution;\r
-  BytesPerScanLine     = HorizontalResolution * (BitsPerPixel / 8);\r
+  BytesPerScanLine     = pFbInfo->BytesPerScanLine;\r
   \r
   ModeBuffer = (FB_VIDEO_MODE_DATA *) AllocatePool (\r
                                                                                                                                                                                ModeNumber * sizeof (FB_VIDEO_MODE_DATA)\r