#1176 closed defect (fixed)
[PATCH] Fix Atlas starting canvas resolution on OS X
Reported by: | historic_bruno | Owned by: | Mitchell K |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 10 |
Component: | Atlas editor | Keywords: | atlas, sdl, wxwidgets, patch |
Cc: | mk12360@… | Patch: |
Description
Looks like the Atlas canvas init problem is back on OS X, the resolution is stuck on the default 320x240 instead of being updated to the full window size. I remember fixing this at some point but it's broken again. If you resize the window, the resolution gets updated properly, so it's just a matter of getting the initialization correct, I remember there's a specific init order that needs to be followed with our combination of SDL and wxWidgets.
Attachments (2)
Change History (6)
by , 12 years ago
Attachment: | AtlasUI-Canvas-size-Mac-quickfix.patch added |
---|
comment:1 by , 12 years ago
Cc: | added |
---|---|
Keywords: | patch review added |
I don't know how to fix it properly but my patch should be reviewed so at least the hack is applied on OS X as well. Someone may want to spent the time to figure out how to do it in a nicer way.
by , 12 years ago
Attachment: | AtlasUI-Canvas-size-Mac-quickfix(1176)-v2.patch added |
---|
comment:2 by , 12 years ago
Milestone: | Backlog → Alpha 10 |
---|---|
Owner: | set to |
Status: | new → assigned |
Summary: | Fix Atlas starting canvas resolution on OS X → [PATCH] Fix Atlas starting canvas resolution on OS X |
comment:4 by , 12 years ago
Keywords: | review removed |
---|
I went ahead and used a slightly different solution which seems to work on Windows, Linux, and OS X, and avoids the current hack of adjusting the window size by 1 pixel.
includes os x in the window-resizing hack, and reverts the resize to make it 2% less hack-ish.