2025-08-01 19:17 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001913Spring engineLuapublic2010-06-19 23:11
Reporteruser744 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.81.2 
Target VersionFixed in Version0.80.0.0+git 
Summary0001913: GetScreenGeometry: returns wrong vertical resolution
DescriptionLua:
screenSizeX, screenSizeY, lol,rofl = Spring.GetScreenGeometry ()
Spring.Echo ("screensizeX=" .. screenSizeX .. " screensizeY=" .. screenSizeY)

for a resolution of 1024x768 this prints:
screensizeX=1024 screenSizeY=667

for a resolution of 1600x1200 this prints:
screensizeX=1600 screenSizeY=1099

-> screenSizeY does not match the actual vertical resolution.
maybe its not a bug but since nobody could explain the difference to me i will asume it is a bug.
Additional Informationtried on 2 computers, happens on both:
a) windows xp, fullscreen, nvidia 6800
b) windows xp, fullscreen, nvidia geforce 2
so reproducibility is "always" for me but maybe its different for others.

changing the desktop resolution has no influence.

spring version: (from infolog)
Spring 0.81.2.0 (0.81.2-15-g7a9aa2b{0.81-branch}-cmake-mingw32)
Build date/time: Mar 12 2010 16:43:46

in infolog it does log the correct resolution:
Video mode set to 1024 x 768 / 32 bit
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004993

Kloot (developer)

Fixed by jK, the size returned on win32 was actually windowSizeY - taskbarSizeY (SM_CYFULLSCREEN vs SM_CYSCREEN).
+Notes

-Issue History
Date Modified Username Field Change
2010-05-03 00:11 user744 New Issue
2010-06-19 23:11 Kloot Note Added: 0004993
2010-06-19 23:11 Kloot Status new => resolved
2010-06-19 23:11 Kloot Fixed in Version => 0.80.0.0+git
2010-06-19 23:11 Kloot Resolution open => fixed
2010-06-19 23:11 Kloot Assigned To => Kloot
+Issue History