Skip to content

Commit

Permalink
feat: add support for 720x480
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfvale committed Jan 4, 2025
1 parent 961d404 commit f5f6f66
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 4 deletions.
File renamed without changes
Binary file added assets/muxsysinfo_720x480.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added assets/preview_720x480.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
5 changes: 2 additions & 3 deletions scenes/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ end
function main:load()
loader:load()
resolution = user_config:read("main", "resolution") or resolution
local res_prefix = resolution:match("^(%d+)x") or "640"
background = love.graphics.newImage(string.format("assets/muxsysinfo_%s.png", res_prefix))
overlay = love.graphics.newImage(string.format("assets/preview_%s.png", res_prefix))
background = love.graphics.newImage(string.format("assets/muxsysinfo_%s.png", resolution))
overlay = love.graphics.newImage(string.format("assets/preview_%s.png", resolution))

get_templates()
render_to_canvas()
Expand Down
2 changes: 1 addition & 1 deletion scenes/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local settings = {}

local menu, checkboxes

local resolutions = { "640x480", "720x720" }
local resolutions = { "640x480", "720x720", "720x480" }
local current_resolution = 1
local all_check = true

Expand Down

0 comments on commit f5f6f66

Please sign in to comment.