Log In  

Hello! I am setting up a Pico 8 Console in my shed, but can't get the screen scaling just right. This is running on a raspberry pi, and otherwise seems to work great.

However, Pico 8 runs either much too small, or just a fraction too big.

These are the settings I am using in config.txt.

Is anyone able to help?

// :: Video Settings

window_size 768 576 // window width, height
screen_size 768 576 // screen width, height (stretched to window) 
pixel_perfect 0

// :: Window Settings

windowed 1 // 1 to start up in windowed mode
window_position -1 -1 // x and y position of window (-1, -1 to let the window manager decide)
frameless 1 // 1 to use a window with no frame
fullscreen_method 0 // 0 maximized window (linux)  1 borderless desktop-sized window  2 fullscreen
P#78497 2020-06-25 12:21

1

Using Windows and a laptop monitor (1366*768) and pico-8's own commandline parameters, I can position it with:

-width 768
-height 768
-windowed 0
-draw_rect 299,0,768,768

Would something like this work for you:

-width 576
-height 576
-windowed 0
-draw_rect 96,0,576,576

Where 96 is (actual screen width minus pico-8 width) divided by 2.

Edit: Or to stretch it horizontally, I think the last line would be -draw_rect 0,0,768 576

Is the following a factor to consider?

https://en.wikipedia.org/wiki/Display_resolution#Overscan_and_underscan

https://en.wikipedia.org/wiki/Overscan

P#78503 2020-06-25 13:29 ( Edited 2020-06-25 13:54)

Thanks - will give this a shot. Can those parameters go in the config.txt or do they need to launch with commandline?

P#78531 2020-06-26 07:17

I was using them at commandline. I don't know if they will work in config.txt. Your basic positioning looks good anyway - the problem anyway might be with overscan as mentioned on the wikipedia pages?

By which I meant either dropping height and width to about 550 and putting top at y=13 might help it fit, or perhaps the monitor has some settings to allow adjustment of its display area.

P#78532 2020-06-26 08:23 ( Edited 2020-06-30 16:18)

Different use case, but this worked really nicely for some resizing on a tiny display connected to a raspberry pi as well, thanks!

P#142129 2024-02-28 15:32

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 22:43:39 | 0.007s | Q:15