Ticket #132 (closed bug: fixed)

Opened 10 years ago

Last modified 10 years ago

Resolution change error

Reported by: eliedebrauwer Owned by: parpg
Priority: major Milestone: Techdemo 1
Component: scripts Version: trunk
Keywords: Cc:
Blocked By: Blocking:


While working on ticket #97, I noticed that actually launching the game with another resolution than the default one, the actual window enlarged, but the camera (?) does not seem to follow this, what basicly happens is the addition of black border (on the left and on the right).

(Regarding ticket #97, this bug was also present before applying the fixes, so until proven wrong, I don't think they are related).


Change History

comment:1 Changed 10 years ago by barra_parpg

To resolve the camera issue, we have to change the the camera viewpoint of all maps to the maximum resolution that we support.

Current camera attributes: <camera id="main" ref_cell_height="38" ref_cell_width="72" ref_layer_id="ObjectLayer?" rotation="45.0" tilt="-60.0" viewport="0,0,1024,768" zoom="1.0" />

That means you'll see black bars if a resolution bigger than 1024*768 is chosen

comment:2 Changed 10 years ago by eliedebrauwer

If only all things in life were this easy, the question remains what the maximum resolution is which we support. Here: I added a set of windowed resolutions (which are filtered by the maximum resolution fife tells us it can deal with). So unless we alter that list, the maximum resolution will be something like 1920x1200 (in windowed mode), in fullscreen mode the maximum is whatever fife tells us we can deal with ...

comment:3 Changed 10 years ago by eliedebrauwer

  • Status changed from new to closed
  • Resolution set to fixed

(In [359]) Ticket #132: Patch by eliedebrauwer. Added logic to automatically learn the correct viewport (this is the current resolution) and apply this on a camera whenever the map gets loaded. closes #132

comment:4 Changed 10 years ago by eliedebrauwer

Sidenote: this disregards whatever gets specified on the map as viewport.


Add a comment

Modify Ticket

as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.