WIP: feat: Scale renderer (PSVita like) #2

Draft
Jab125 wants to merge 11 commits from Jab125/L4JAddons:vitascale into main
Owner
No description provided.
@ -0,0 +3,4 @@
import net.minecraft.client.gui.GuiGraphicsExtractor;
public class VitaScale {
public static void extractRenderState(GuiGraphicsExtractor extractor) {}

wip?

wip?
Author
Owner

There's supposed to be an event here

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

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 ?

toggling Vita Scale in the menu won’t update overrideWidth/overrideHeight or refresh the current window, is a full restart intended ?
Author
Owner

Not intentional

Not intentional
@ -7,2 +7,3 @@
"authors": [
"creepereater201"
"creepereater201",
"Jabe125"

jabe125

jabe125
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u vitascale:Jab125-vitascale
git switch Jab125-vitascale

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.

git switch main
git merge --no-ff Jab125-vitascale
git switch Jab125-vitascale
git rebase main
git switch main
git merge --ff-only Jab125-vitascale
git switch Jab125-vitascale
git rebase main
git switch main
git merge --no-ff Jab125-vitascale
git switch main
git merge --squash Jab125-vitascale
git switch main
git merge --ff-only Jab125-vitascale
git switch main
git merge Jab125-vitascale
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Lasting-Legacy/L4JAddons!2
No description provided.