Skip to content

version: 1.13 When the window is maximized, click Restore cannot display the correct size #1346

Closed

Description

@chenwc520

Environment

  • OS: win10 64
  • scrcpy version: 1.13
  • installation method: [e.g. manual build, apt, snap, brew, Windows release...]
  • device model:
  • Android version: 7.0

Describe the bug
When the window is maximized, click Restore cannot display the correct size

Activity

  1. rom1v commented on May 2, 2020

    @rom1v
    Collaborator

    What is your expected correct size? What is the size you get?

    You specified version 1.13 in the title: is the behavior different from v1.12?

  2. fahadbw commented on May 5, 2020

    @fahadbw

    Same issue

    My original size 1280x720 then change the size to 800x600. If I did maximize then restore down or fullscreen then unfullscreen its back to original size 1280x720.

    1.12 doent have this issue, while 1.13 does.

  3. added a commit that references this issue on May 5, 2020
    ead7ee4
  4. rom1v commented on May 5, 2020

    @rom1v
    Collaborator

    Thank you for your report.

    Fixed by ead7ee4.

    Here is a build for Windows so that you can test (replace in your scrcpy v1.13 directory):

    • scrcpy.exe
      SHA256: 3e64189d03fa26f920d31e002d3d6b751ed495ef46319dce45be3e3b2d46f28a
    • scrcpy-server
      SHA256: 84707914eab0a0e47f1532ee585a95ac29b5368951e7b0362610f9949bf3e685
  5. AndroidDeveloperLB commented on May 20, 2020

    @AndroidDeveloperLB

    @rom1v When replacing those files, Windows warns about opening scrcpy.exe, and when trying to run scrcpy-noconsole.exe , it doesn't do anything.
    Any way to call scrcpy.exe without console, instead of using scrcpy-noconsole.exe?
    I use this command:

    scrcpy-noconsole.exe -T

    :(

  6. rom1v commented on May 20, 2020

    @rom1v
    Collaborator

    When replacing those files, Windows warns about opening scrcpy.exe

    Which warnings?

  7. rom1v commented on May 20, 2020

    @rom1v
    Collaborator

    Any way to call scrcpy.exe without console, instead of using scrcpy-noconsole.exe?

    The "no console" thing is Windows specific, and changes the way the binary is linked:

    scrcpy/app/meson.build

    Lines 135 to 139 in 82446b6

    if get_option('windows_noconsole')
    link_args = [ '-Wl,--subsystem,windows' ]
    else
    link_args = []
    endif

    So it cannot be switched by a command-line argument.

  8. AndroidDeveloperLB commented on May 20, 2020

    @AndroidDeveloperLB

    I closed the warning. It's the normal warning of running an EXE file. Here, I replaced and launched it again:

    image

    I don't remember it appeared last time I extracted and launched the tool. Odd.

    As for no-console, too bad. No workaround then?

  9. rom1v commented on May 20, 2020

    @rom1v
    Collaborator

    Oh that's expected I guess when you run a new binary. Just click "Run anyway".

  10. AndroidDeveloperLB commented on May 20, 2020

    @AndroidDeveloperLB

    Sure. No reason to stop trusting the same one that I used before :)

  11. hcet14 commented on May 20, 2020

    @hcet14

    scrcpy.exe
    SHA256: 3e64189d03fa26f920d31e002d3d6b751ed495ef46319dce45be3e3b2d46f28a
    scrcpy-server
    SHA256: 84707914eab0a0e47f1532ee585a95ac29b5368951e7b0362610f9949bf3e685

    I couldn't reproduce the error. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions