emblem Posted November 7, 2010 Author Share Posted November 7, 2010 This fixes text centering so it actually works correctly. No, it didn't work before.I found out the problem when I tried to change the text and everything was magically no longer centered.**Replace this:**```Public Sub SetFont(ByVal Font As String, ByVal Size As Byte) GameFont = CreateFont(Size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font) frmMainGame.Font = Font frmMainGame.FontSize = Size - 4End Sub```**With this:**```Public Sub SetFont(ByVal Font As String, ByVal Size As Byte) GameFont = CreateFont(Size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font) frmMainGame.Font = Font frmMainGame.FontSize = Size - 5End Sub``` Link to comment Share on other sites More sharing options...
Yxxe Posted November 8, 2010 Share Posted November 8, 2010 All it takes is changing the 4 to a 5? I will have to try this out later. ;D Link to comment Share on other sites More sharing options...
Helladen Posted November 8, 2010 Share Posted November 8, 2010 Thanks for the fix. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now