fixed popup borders with new hidpi

This commit is contained in:
Egor.Ushakov
2017-01-23 16:20:57 +03:00
parent 5a4d2b160f
commit 3a219b6c01
3 changed files with 5 additions and 4 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
package com.intellij.ui;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.ui.paint.RectanglePainter;
import com.intellij.util.ui.JBUI;
import org.jetbrains.annotations.NotNull;
@@ -70,7 +71,7 @@ public interface PopupBorder extends Border {
Color color = myActive ? myActiveColor : myPassiveColor;
g.setColor(color);
g.drawRect(x, y, width - 1, height - 1);
RectanglePainter.DRAW.paint((Graphics2D)g, x, y, width, height, null);
}
@Override
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.