Open twiddlingbits opened 1 week ago
The main problem with this is it seems like changing the canvas size without recreating the render context causes it to just stretch the original resolution to the new one. So I would either need to use the scale function before rendering anything or there needs to be some way to reset the context.
as we discussed, i think the best thing is to add something like d2d_resize_canvas
(or probably an io_resize
type call that operates on the twrConCanvas
.) See io_setfocus
for something roughy similar. Alternaty would be a function to create and delete consoles from C. Something I have been mulling over adding for a while. This concept can be extended to allow the creation, deletion of any twrLibrary
derived class from C.
Windows 11, Chrome
In single Player pong, it seems to be creating a canvas (or perhaps other HTML element) that is unnecessarily large ot the right (width), that causes a scroll bar to appear and interfere with the right arrow/left arrow movement of the paddle. Using the debug console in chrome to shows this, but i imagine you could also get the issue to appear by reducing the width of the browser window.