#2 larger resolutions not displayed properly

closed
nobody
None
1
2005-03-20
2004-03-30
Suggs bill
No

any resolution beyond 640x480 doesn't display
correctly. The main area of the screen is ok, but the
toolbars seem to be stuck at 640x480 and obscure parts
of the main area. This effect can be seen when talking
to other characters as the dialog area also seems to be
stuck at 640x480

Discussion

  • Laszlo Toth

    Laszlo Toth - 2004-03-31
    • priority: 5 --> 1
    • status: open --> open-later
     
  • Laszlo Toth

    Laszlo Toth - 2004-03-31

    Logged In: YES
    user_id=885460

    We'll first make the engine work on one resolution,
    polishing later ;)

     
  • Laszlo Toth

    Laszlo Toth - 2004-12-12
    • status: open-later --> open
     
  • Laszlo Toth

    Laszlo Toth - 2004-12-12

    Logged In: YES
    user_id=885460

    Some resolutions (800x600 and 1024x768) now work with
    iwd/iwd2/bg2.
    This applies only to the main game area.

     
  • Laszlo Toth

    Laszlo Toth - 2005-03-20
    • status: open --> closed
     
  • Laszlo Toth

    Laszlo Toth - 2005-03-20

    Logged In: YES
    user_id=885460

    This has been greatly improved, frames are now applied
    around the windows (in out of game screens) if resolution is
    larger.
    ingame screens (except the main game screen) are not fixed yet.
    However, the feature is in, so this request is 'done'.

     
  • Tom

    Tom - 2009-11-23

    With the latest widescreen mod (http://github.com/vbigiani/widescreen) gemrb supports widescreen just fine. Except that GUICommon.py:GetWindowPack should check for CGUI* first, or check both width or height. This works fine on BG2 at least. Otherwise, with 1280x1024, GetWindowPack tries to use chu for 1280x960, which is messed up.

     
  • Tom

    Tom - 2009-11-23

    diff --git a/gemrb/GUIScripts/GUICommon.py b/gemrb/GUIScripts/GUICommon.py
    index dac3e8c..4e46969 100644
    --- a/gemrb/GUIScripts/GUICommon.py
    +++ b/gemrb/GUIScripts/GUICommon.py
    @@ -54,12 +54,18 @@ def CloseOtherWindow (NewWindowFn):

    def GetWindowPack():
    width = GemRB.GetSystemVariable (SV_WIDTH)
    + height = GemRB.GetSystemVariable (SV_HEIGHT)
    gui = -1
    if GemRB.GameType == "pst":
    default = "GUIWORLD"
    else:
    default = "GUIW"

    + # use a custom gui if there is one
    + gui = "CGUI" + str(width)[:2] + str(height)[:2]
    + if not GemRB.HasResource (gui, RES_CHU, 1):
    + return gui
    +
    if width == 640:
    gui = default
    elif width == 800:
    @@ -71,17 +77,7 @@ def GetWindowPack():
    if gui != -1:
    if GemRB.HasResource (gui, RES_CHU, 1):
    return gui
    - else:
    - return default
    -
    - # use a custom gui if there is one
    - height = GemRB.GetSystemVariable (SV_HEIGHT)
    - gui = "CGUI" + str(width)[:2] + str(height)[:2]
    - if GemRB.HasResource (gui, RES_CHU, 1):
    - return gui
    - else:
    - # fallback to the smallest resolution
    - return default
    + return default

    def RestPress ():
    GemRB.RestParty(0,0,0)

     

Log in to post a comment.