Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: canvases don't draw at the right scale or position #221

Open
1 task done
Beelzebold opened this issue Jan 17, 2024 · 1 comment
Open
1 task done

[Bug]: canvases don't draw at the right scale or position #221

Beelzebold opened this issue Jan 17, 2024 · 1 comment
Labels

Comments

@Beelzebold
Copy link

Software Version

3.0

What Happened?

image
above, the contents to be drawn to screen are drawn to a canvas, which is then drawn to 0,0 with no applied scale or offset

What was Expected?

image
this is the same thing just drawn directly to the screen instead, with no canvas. this is also the result I get when using the canvas in love2d on my pc.

Code to Reproduce

--notice if you run this as-is that the text may appear partially past the top of the screen, with weirdly scaled pixels
tilecanvas=love.graphics.newCanvas(400,240)

--main loop functions
function love.load()
	love.graphics.setCanvas(tilecanvas)
	love.graphics.print("hello world",0,10)
	love.graphics.setCanvas()
	end
function love.draw(screen)
	if screen~="bottom" then--top screen
		love.graphics.setColor(1,1,1)
		love.graphics.draw(tilecanvas,0,0)
		--love.graphics.print("hello world",0,10)
		else--bottom screen
		
		end
	end

Console

Nintendo 3DS

Firmware Version(s)

11.17.0-50u

Custom Firmware Version

13.0.2

Execution Method

Homebrew Menu

Code of Conduct

  • I have read the Code of Conduct and agree to these terms
@Beelzebold
Copy link
Author

didn mean do dat

@Beelzebold Beelzebold reopened this Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant