WIP: feat: Scale renderer (PSVita like) #2
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Lasting-Legacy/L4JAddons!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Jab125/L4JAddons:vitascale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +3,4 @@import net.minecraft.client.gui.GuiGraphicsExtractor;public class VitaScale {public static void extractRenderState(GuiGraphicsExtractor extractor) {}wip?
There's supposed to be an event here
@ -0,0 +32,4 @@private @Unique RenderTarget scaledRenderTarget;@WrapOperation(method = "renderFrame", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/pipeline/RenderTarget;blitToScreen()V"))void renderFrame(RenderTarget instance, Operation<Void> original) {method currently replaces the vanilla blit unconditionally - the check on l38 only checks if the render target exists, not whether the option is enabled
@ -0,0 +16,4 @@@Expression("this.overrideWidth = ?")@WrapOperation(method = "@LFourJAddons:OptionsLFourJInit", at = @At("MIXINEXTRAS:EXPRESSION"))private void init(Options instance, int value, Operation<Void> original) {original.call(instance, L4JAddonsConfig.isEnabled(Tweak.VITA_SCALE) ? 960 : value);toggling Vita Scale in the menu won’t update overrideWidth/overrideHeight or refresh the current window, is a full restart intended ?
Not intentional
@ -7,2 +7,3 @@"authors": ["creepereater201""creepereater201","Jabe125"jabe125
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.