Made FPS string statically right-justified - unrelated to actual FPS string width preventing jumps
This commit is contained in:
parent
5ca2103453
commit
21d9308934
|
@ -3,6 +3,7 @@ D1X-Rebirth Changelog
|
|||
20090202
|
||||
--------
|
||||
main/newdemo.c: Defined some default cockpit modes in Demo mode so we do not get invalid values when demo starts in non-default-view mode (as new HUD modes are only triggered at beginning and end of event)
|
||||
main/game.c: Made FPS string statically right-justified - unrelated to actual FPS string width preventing jumps
|
||||
|
||||
20090201
|
||||
--------
|
||||
|
|
|
@ -546,7 +546,7 @@ void show_framerate()
|
|||
gr_set_fontcolor(BM_XRGB(0,31,0),-1);
|
||||
|
||||
ftoa( temp, rate );
|
||||
gr_get_string_size(temp,&w,&h,&aw);
|
||||
gr_get_string_size("FPS: 000.00",&w,&h,&aw);
|
||||
gr_printf(SWIDTH-w-FSPACX(1),y,"%s", temp );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue