aboutsummaryrefslogtreecommitdiffstats
path: root/scoretbl.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-09-03 21:49:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-09-03 21:49:12 -0700
commit3bbec528eb74d0ed0f5b3d3c5803cbf81de2aaba (patch)
tree2a8ce2f772114ca7aea73752bd4424eaf7266a47 /scoretbl.c
parent09ab098f1647b48f97d6cb948c4685a1cefa7aa1 (diff)
downloadgrv-3bbec528eb74d0ed0f5b3d3c5803cbf81de2aaba.tar.gz
grv-3bbec528eb74d0ed0f5b3d3c5803cbf81de2aaba.tar.xz
grv-3bbec528eb74d0ed0f5b3d3c5803cbf81de2aaba.zip
Render the screen at native resolution
Use the current desktop resolution for the screen canvas instead of switching display modes. Many modern monitors don't handle it well, and this way we get a colored border instead of strange aspect ratios. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'scoretbl.c')
-rw-r--r--scoretbl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scoretbl.c b/scoretbl.c
index 2d62160..f04d40e 100644
--- a/scoretbl.c
+++ b/scoretbl.c
@@ -208,7 +208,7 @@ void highscore_parse(FILE *f, uint8_t upload)
*/
int highscore_write(FILE *f, uint8_t leave)
{
- char buffer[MAXLINE];
+ char buffer[MAXLINE*2];
int i, j;
fputs("VC 1.0\n", f); /* Version C 1.0 */
@@ -263,6 +263,6 @@ int have_upload_scores(void)
if ( bests.level[i].score[j].upload ||
bests.level[i].time_ms[j].upload )
return 1;
-
+
return 0;
}