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