Multiple Graphics Objects, Funky Fonts
BlitzMax Forums/BlitzMax Programming/Multiple Graphics Objects, Funky Fonts
| ||
Hey everyone, I'm having an issue drawing to multiple graphics windows. If they have the same resolution, everything comes out fine, but if the resolution is different, the fonts look distorted. Example:SuperStrict Local g1:TGraphics = CreateGraphics(200,100,0,0,Null) Local g2:TGraphics = CreateGraphics(200,100,0,0,Null) Local g3:TGraphics = CreateGraphics(300,100,0,0,Null) Repeat PollSystem() Delay 100 SetGraphics g1 Cls DrawText("Hello G1",10,10) Flip SetGraphics g2 Cls DrawText("Hello G2",10,10) Flip SetGraphics g3 Cls DrawText("Hello G3",10,10) Flip Forever In Some cases on OSX, letters that are repeated (i.e. Hello) show up as white blocks. Is there a way around this? |
| ||
What version of Max are you using? I think your issue is related to this.. http://www.blitzbasic.com/Community/posts.php?topic=89079 |
| ||
I'm using 1.41. I've tried the SetViewport fix but it did not change the output. |
| ||
Sorry that didn't help, I've not upgraded to the latest max yet. However on my windows machine (and Max 1.39) this only fails when using the default d3d9 graphics driver. Adding:SetGraphicsDriver d3d7max2ddriver() or SetGraphicsDriver GLMax2DDriver() GLShareContexts() fixes it for me. |
| ||
Wonderful, the GLShareContexts() Fixed it on the Mac as well. Thanks a ton. |