From 2f464b193f3953e26be0b08a6d4fd62527258a92 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 13 Sep 2008 18:42:03 +0000 Subject: [PATCH] Fix the build of the intel_extreme.accelerant, I obviously compiled the wrong target when I checked it. Move the target display_mode declaration back above the check but remove the dereferencing assignment. If proposing the display mode succeeds it also initializes target. Thanks luroh for noticing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27492 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/intel_extreme/mode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/mode.cpp b/src/add-ons/accelerants/intel_extreme/mode.cpp index 6fa88410d4..02f3dee0c9 100644 --- a/src/add-ons/accelerants/intel_extreme/mode.cpp +++ b/src/add-ons/accelerants/intel_extreme/mode.cpp @@ -529,11 +529,10 @@ intel_set_display_mode(display_mode *mode) { TRACE(("intel_set_display_mode()\n")); + display_mode target; if (mode == NULL || intel_propose_display_mode(&target, mode, mode)) return B_BAD_VALUE; - display_mode target = *mode; - uint32 colorMode, bytesPerRow, bitsPerPixel; get_color_space_format(target, colorMode, bytesPerRow, bitsPerPixel);