Fix menu renderer to use the 854x480 framebuffer space
RCO menu objects are authored in the PSP movie player's 854x480 FWVGA framebuffer, not the 480x272 LCD. The renderer was laying everything out in the wrong coordinate space, which is why no menu items were visible.
This commit is contained in:
@@ -475,7 +475,7 @@ public final class Main {
|
||||
};
|
||||
|
||||
String resourceName = rcoPath.substring(rcoPath.lastIndexOf('/') + 1).replace(".RCO", "");
|
||||
VsmxNativeObject globals = GlobalVariables.create(interpreter, 854, 480);
|
||||
VsmxNativeObject globals = GlobalVariables.create(interpreter, 480, 272);
|
||||
VsmxNativeObject controller = Controller.create(interpreter, menuHost, resourceName);
|
||||
VsmxNativeObject movieplayer = MoviePlayer.create(interpreter, menuHost, controller);
|
||||
VsmxNativeObject resource = Resource.create(interpreter, null, controller, rco);
|
||||
|
||||
Reference in New Issue
Block a user