Preferences: Make "Antialiasing" Revert button work as expected.

Fixes #11787.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
Janus 2015-01-25 11:11:10 +00:00 committed by Augustin Cavalier
parent 906283b6d6
commit 4e71cef8fd

View File

@ -194,7 +194,6 @@ AntialiasingSettingsView::MessageReceived(BMessage *msg)
|| subpixelAntialiasing == fCurrentSubpixelAntialiasing)
break;
fSavedSubpixelAntialiasing = fCurrentSubpixelAntialiasing;
fCurrentSubpixelAntialiasing = subpixelAntialiasing;
fAverageWeightControl->SetEnabled(fCurrentSubpixelAntialiasing);
@ -210,7 +209,6 @@ AntialiasingSettingsView::MessageReceived(BMessage *msg)
|| hinting == fCurrentHinting)
break;
fSavedHinting = fCurrentHinting;
fCurrentHinting = hinting;
set_hinting_mode(fCurrentHinting);
@ -223,7 +221,6 @@ AntialiasingSettingsView::MessageReceived(BMessage *msg)
if (averageWeight == fCurrentAverageWeight)
break;
fSavedAverageWeight = fCurrentAverageWeight;
fCurrentAverageWeight = averageWeight;
set_average_weight(fCurrentAverageWeight);