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
This commit is contained in:
Michael Lotz 2008-09-13 18:42:03 +00:00
parent 479731a193
commit 2f464b193f

View File

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