OSDN Git Service

Fix Palette preview image scaling on Windows
authorTor Norbye <tnorbye@google.com>
Tue, 1 Mar 2011 02:50:51 +0000 (18:50 -0800)
committerTor Norbye <tnorbye@google.com>
Tue, 1 Mar 2011 02:50:51 +0000 (18:50 -0800)
commit7a18f14d98bbf7094dd0faa55cb6d90c7645ec80
treef0882b9687046cb9980f25693ed6caa66cb83272
parent2695266bdddb8d827ea682a7e310e19919a73826
Fix Palette preview image scaling on Windows

When using palette previews with a scaling factor (e.g. the small or
tiny palette modes), the preview images look bad on Windows.  This
appears to be because SWT on Windows has a different set of defaults
for antialiasing and interpolation.

This checkin turns on antialiased high interpolation for image
painting in the palette (when the palette is scaled) to address the
first issue listed in 15071: Layout editor rendering issues in ADT 10

Change-Id: Ie3c619d9105d9d30b1bbe5fb91c195c0f65fee97
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ImageControl.java