|
|
@ -58,16 +58,20 @@ public class HighDpiTransformer : Transformer() { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (clazz.name == gameShell) { |
|
|
|
when (clazz.name) { |
|
|
|
|
|
|
|
gameShell -> { |
|
|
|
addCanvasScaleField(clazz) |
|
|
|
addCanvasScaleField(clazz) |
|
|
|
newMembers++ |
|
|
|
newMembers++ |
|
|
|
} else if (clazz.name in GL_INTERFACES) { |
|
|
|
} |
|
|
|
|
|
|
|
in GL_INTERFACES -> { |
|
|
|
addPixelZoomMethod(clazz, Opcodes.ACC_ABSTRACT) |
|
|
|
addPixelZoomMethod(clazz, Opcodes.ACC_ABSTRACT) |
|
|
|
newMembers++ |
|
|
|
newMembers++ |
|
|
|
} else if (clazz.name in GL_IMPLS) { |
|
|
|
} |
|
|
|
|
|
|
|
in GL_IMPLS -> { |
|
|
|
addPixelZoomMethod(clazz, Opcodes.ACC_FINAL or Opcodes.ACC_NATIVE) |
|
|
|
addPixelZoomMethod(clazz, Opcodes.ACC_FINAL or Opcodes.ACC_NATIVE) |
|
|
|
newMembers++ |
|
|
|
newMembers++ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|