[haiku-commits] haiku: hrev52125 - src/add-ons/accelerants/vesa

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 20 Jul 2018 23:00:44 -0400 (EDT)

hrev52125 adds 1 changeset to branch 'master'
old head: 83aa7d63a5e9945787fa19c83765fb5eaf0f2437
new head: 2ff22d6734176a2cf93a05c6842f69ef59d27a26
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=2ff22d673417+%5E83aa7d63a5e9

----------------------------------------------------------------------------

2ff22d673417: vesa: fix missing display_mode for UEFI.
  
  * Broke use of non-standard modes in hrev51207. Code changed
    when merging framebuffer driver back into vesa driver...
  
  Change-Id: I688ae627de23f37ffc8614d8f189593f8833ae3e

                         [ Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52125
Commit:      2ff22d6734176a2cf93a05c6842f69ef59d27a26
URL:         https://git.haiku-os.org/haiku/commit/?id=2ff22d673417
Author:      Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
Date:        Fri Jul 20 05:01:03 2018 UTC

----------------------------------------------------------------------------

1 file changed, 6 insertions(+), 5 deletions(-)
src/add-ons/accelerants/vesa/mode.cpp | 11 ++++++-----

----------------------------------------------------------------------------

diff --git a/src/add-ons/accelerants/vesa/mode.cpp 
b/src/add-ons/accelerants/vesa/mode.cpp
index 1cc2837211..91636453b9 100644
--- a/src/add-ons/accelerants/vesa/mode.cpp
+++ b/src/add-ons/accelerants/vesa/mode.cpp
@@ -115,11 +115,12 @@ create_mode_list(void)
                if (initialModes != NULL) {
                        initialModesCount = 1;
 
-                       compute_display_timing(initialModes[0].virtual_width,
-                               initialModes[0].virtual_height, 60, false,
-                               &initialModes[0].timing);
-                       fill_display_mode(initialModes[0].virtual_width,
-                               initialModes[0].virtual_height, 
&initialModes[0]);
+                       display_mode &mode = gInfo->shared_info->current_mode;
+
+                       compute_display_timing(mode.virtual_width, 
mode.virtual_height,
+                               60, false, &initialModes[0].timing);
+                       fill_display_mode(mode.virtual_width, 
mode.virtual_height,
+                               &initialModes[0]);
                }
        }
 


Other related posts:

  • » [haiku-commits] haiku: hrev52125 - src/add-ons/accelerants/vesa - Jessica Hamilton