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);