SphereServer BugTracker - SphereServer
View Issue Details
0002067SphereServerexecutable - windows buildpublic26-03-12 21:2706-08-13 02:22
babidi 
 
normalminoralways
closednot fixable 
20-09-2009, 0.56b Prerelease 
 
Not Available
None
None
1506
0002067: screensize return always 800,0
SCREENSIZE R Gets the client's screen size. (width,height)
SCREENSIZE.X R Gets the width of the client's screen size.
SCREENSIZE.Y R Gets the height of the client's screen size.

screensize return always 800,0
screensize.x return always 800
screensize.y return always 0
No tags attached.
Issue History
26-03-12 21:27babidiNew Issue
27-03-12 03:55MrSugarCubeNote Added: 0001308
27-03-12 03:55MrSugarCubeStatusnew => closed
27-03-12 03:55MrSugarCubeAssigned To => MrSugarCube
27-03-12 03:55MrSugarCubeResolutionopen => not fixable
27-03-12 07:44babidiNote Added: 0001309
27-03-12 07:44babidiStatusclosed => feedback
27-03-12 07:44babidiResolutionnot fixable => reopened
27-03-12 07:58babidiNote Added: 0001310
27-03-12 07:58babidiStatusfeedback => assigned
27-03-12 08:22babidiNote Edited: 0001310bug_revision_view_page.php?bugnote_id=0001310#r422
27-03-12 08:23babidiNote Edited: 0001310bug_revision_view_page.php?bugnote_id=0001310#r423
06-08-13 02:22BenNote Added: 0001631
06-08-13 02:22BenStatusassigned => closed
06-08-13 02:22BenAssigned ToMrSugarCube =>
06-08-13 02:22BenResolutionreopened => not fixable

Notes
(0001308)
MrSugarCube   
27-03-12 03:55   
Unfortunately the recent clients are only sending the screen height to the server and are leaving the width as zero. There's nothing we can do on our end to fix this.
(0001309)
babidi   
27-03-12 07:44   
even if you set 640x480 it always return 800,0
that's the problem
(0001310)
babidi   
27-03-12 07:58   
(edited on: 27-03-12 08:23)
on @login this packet is recieved

PACKET BF.5 – Screen Size (191 SUB 5)

if 800 x 600
00 0d 00 05 00 00 03 020 00 (ofcourse 320 HEX => 800 DEC)

if 640 x 480
00 0d 00 05 00 00 02 080 00 (also 280 HEX => 640)

you are right that only heigt is sent, but screensize does not work, and we should give it as correct that if is x is 800 then y is 600 and also if x is 640 y is 480 for make command work.

i know then there are software wich can enlarge your window... however.
we can do a proportional 4:3 as it is.

screensize.x = recieved
screensize.y = recieved/4*3

what do you think, just to not let unsuported this feature...

(0001631)
Ben   
06-08-13 02:22   
This can't be fixed as it is a client issue.
Faking the Y result based on X is not a good idea as we can't identify the proper ratio of the screen (4:3 or 16:9)