Ticket #1470: patch_1470.diff

File patch_1470.diff, 618 bytes (added by xandroalmeida, 12 years ago)

This is my patch to correct this bug.

  • src/preferences/mouse/MouseWindow.cpp

     
    161161            int32 value;
    162162            if (message->FindInt32("be:value", &value) == B_OK) {
    163163                // slow = 8192, fast = 524287
    164                 fSettings.SetMouseSpeed((int32)pow(2, value * 6 / 1000) * 8192);
     164                fSettings.SetMouseSpeed((int32)pow(2, (double)value * 6 / 1000) * 8192);
    165165                fDefaultsButton->SetEnabled(fSettings.IsDefaultable());
    166166                fRevertButton->SetEnabled(true);
    167167            }