v0.4.3: switched to a better fix for graphics bugs with shadowbox
This commit is contained in:
parent
08371bfb91
commit
794648fa21
|
@ -67,14 +67,12 @@ public class SmartTexture extends Texture {
|
||||||
protected void generate() {
|
protected void generate() {
|
||||||
super.generate();
|
super.generate();
|
||||||
bitmap( bitmap, premultiplied );
|
bitmap( bitmap, premultiplied );
|
||||||
super.filter( fModeMin, fModeMax );
|
filter( fModeMin, fModeMax );
|
||||||
super.wrap( wModeH, wModeV );
|
wrap( wModeH, wModeV );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void filter(int minMode, int maxMode) {
|
public void filter(int minMode, int maxMode) {
|
||||||
if (fModeMin == minMode && fModeMax == maxMode) return;
|
|
||||||
|
|
||||||
fModeMin = minMode;
|
fModeMin = minMode;
|
||||||
fModeMax = maxMode;
|
fModeMax = maxMode;
|
||||||
if (id != -1)
|
if (id != -1)
|
||||||
|
@ -83,8 +81,6 @@ public class SmartTexture extends Texture {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void wrap( int s, int t ) {
|
public void wrap( int s, int t ) {
|
||||||
if (wModeH == s && wModeV == t) return;
|
|
||||||
|
|
||||||
wModeH = s;
|
wModeH = s;
|
||||||
wModeV = t;
|
wModeV = t;
|
||||||
if (id != -1)
|
if (id != -1)
|
||||||
|
|
|
@ -30,8 +30,10 @@ public class ShadowBox extends NinePatch {
|
||||||
|
|
||||||
public ShadowBox() {
|
public ShadowBox() {
|
||||||
super( Assets.SHADOW, 1 );
|
super( Assets.SHADOW, 1 );
|
||||||
|
|
||||||
texture.filter( SmartTexture.LINEAR, SmartTexture.LINEAR );
|
//If this is the first time the texture is generated, set the filtering
|
||||||
|
if (texture.id == -1)
|
||||||
|
texture.filter( SmartTexture.LINEAR, SmartTexture.LINEAR );
|
||||||
|
|
||||||
scale.set( SIZE, SIZE );
|
scale.set( SIZE, SIZE );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user