A method, apparatus, and computing device for resolution adjustment scaling

By adjusting the scaling when the screen resolution changes, the problem of incomplete display of desktop and application windows is solved, ensuring complete display and providing a high-quality user experience in various scenarios.

CN115061653BActive Publication Date: 2026-03-27UNIONTECH SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Current desktop operating systems suffer from issues where desktop and application windows cannot be fully displayed when the monitor is plugged in/out, the monitor is replaced, or the resolution is adjusted. Existing technologies cannot intelligently adjust the resolution and scaling.

Method used

A resolution-based scaling method is provided. In response to the completion of resolution adjustment, the maximum scaling supported by the display at the current resolution is determined, and the scaling is adjusted according to the comparison between the maximum scaling and the actual scaling, so as to ensure that the display can display completely under various resolution change scenarios.

Benefits of technology

It ensures complete display of desktop applications under various resolution adjustment scenarios, preventing windows from overflowing. It provides the best display effect, especially when switching from a single screen to a multi-screen setup, and automatically restores the user's resolution configuration when switching back to a single screen, providing a good user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115061653B_ABST
    Figure CN115061653B_ABST
Patent Text Reader

Abstract

The application discloses a resolution adjustment scaling method, device and computing equipment. The application aims to solve the problem that the desktop and application program window cannot be completely displayed in the scene of resolution adjustment such as plugging and unplugging a display screen and replacing a display screen. The resolution adjustment scaling method comprises the following steps: determining the maximum scaling supported by the display screen under the current resolution in response to the completion of the current resolution adjustment; and adjusting the scaling according to the comparison result of the maximum scaling and the actual scaling.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application 2022106643428 filed on June 14, 2022. TECHNICAL FIELD

[0002] The present application relates to the technical field of computers and the Internet, and particularly relates to a resolution adjustment scaling method and device and a computing device. BACKGROUND

[0003] In the current desktop operating system, in the scenarios of plugging in or out a display screen, replacing a display screen, or adjusting a resolution, sometimes the desktop and application program windows cannot be completely displayed.

[0004] In the prior art, because the system default resolution is the best resolution reported by the graphics card driver, the desktop and application program also display content according to the system default scaling, and the resolution and scaling cannot be intelligently adjusted, thus causing incomplete display of the desktop or program window. SUMMARY

[0005] To this end, the present application provides a resolution adjustment scaling method and device, a computing device, and a storage medium to solve or at least alleviate the above problems.

[0006] According to one aspect of the present application, a resolution adjustment scaling method is provided, which comprises the steps of: determining the maximum scaling that a display screen can support under a current resolution in response to completion of current resolution adjustment; and performing scaling adjustment according to a comparison result of the maximum scaling and actual scaling.

[0007] Optionally, in the resolution adjustment scaling method of the present application, the step of performing scaling adjustment according to the comparison result of the maximum scaling and actual scaling comprises: comparing the maximum scaling and the actual scaling; and when the actual scaling is greater than the maximum scaling, adjusting the scaling to the maximum scaling.

[0008] Optionally, in the resolution adjustment scaling method of the present application, the step of determining the maximum scaling that the display screen can support under the current resolution comprises: calculating the maximum vertical scaling that the display screen can support according to the vertical resolution of the current resolution; calculating the maximum horizontal scaling that the display screen can support according to the horizontal resolution of the current resolution; and determining the maximum scaling according to the minimum value of the maximum vertical scaling and the maximum horizontal scaling.

[0009] Optionally, in the resolution adjustment scaling method of the present application, the current resolution adjustment comprises: the current resolution is adjusted due to a change in the number of display screens, and / or the current resolution is adjusted due to a change in the configuration of the display screen.

[0010] Optionally, in the resolution adjustment scaling method, the step of adjusting the current resolution according to the number of display screens comprises: when the number of display screens increases from one to a plurality, determining the current resolution of each display screen in the plurality of display screens according to a preset rule.

[0011] Optionally, in the resolution adjustment scaling method, the step of determining the current resolution of each display screen in the plurality of display screens according to a preset rule comprises: when there are identical resolutions supported by the plurality of display screens, determining the maximum value in the identical resolutions as the current resolution of each display screen in the plurality of display screens; and when there are no identical resolutions supported by the plurality of display screens, determining the best resolution of each display screen as the current resolution of the display screen.

[0012] Optionally, in the resolution adjustment scaling method, the step of adjusting the current resolution according to the number of display screens further comprises: when the number of display screens decreases from a plurality to one, restoring the current resolution of one display screen to the resolution of the display screen before the display screen accesses the plurality of display screens.

[0013] According to another aspect of the present application, there is also provided a resolution adjustment scaling device, comprising: a maximum scaling determination unit adapted to determine the maximum scaling that can be supported by a display screen at a current resolution in response to completion of adjustment of the current resolution; and a scaling adjustment unit adapted to perform scaling adjustment according to a comparison result of the maximum scaling and an actual scaling.

[0014] According to another aspect of the present application, there is also provided a computing device, comprising: at least one processor and a memory storing program instructions; when the program instructions are read and executed by the processor, the computing device is caused to perform the resolution adjustment scaling method as above.

[0015] According to another aspect of the present application, there is also provided a readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device is caused to perform the resolution adjustment scaling method as above.

[0016] According to the technical scheme of the present application, the resolution adjustment scaling based method, device, computing device and storage medium are provided, at least one of the following beneficial effects can be achieved: in various scenarios causing resolution adjustment, the resolution adjustment scaling is adjusted according to the adjusted resolution, so that the adjusted scaling is matched with the resolution, so that each desktop application can be displayed completely, and the window display is ensured not to overflow in each scenario. Especially, in the scenario of single screen becoming multiple screens, the resolutions of each display screen are compared, the optimal display mode and the resolutions of each screen are determined, and then the resolution adjustment scaling is adjusted to ensure the best display effect in the multiple screen mode. In addition, when the multiple screen mode returns to the single screen mode, the previous resolution configuration of the user can be automatically restored, and the user has a good experience.

[0017] The above description is only a summary of the technical scheme of the present application, in order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to achieve the above and related purposes, certain illustrative aspects will be described herein in connection with the following description and drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings in which like reference characters indicate like features or elements throughout the drawings. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings in which like reference characters indicate like features or elements throughout the drawings.

[0019] Figure 1 A schematic diagram of an application scenario 100 according to an embodiment of the present application is shown;

[0020] Figure 2 A schematic block diagram of a computing device 200 according to an embodiment of the present application is shown;

[0021] Figure 3 A flowchart of a resolution adjustment scaling method 300 according to an embodiment of the present application is shown;

[0022] Figure 4 A resolution example diagram of a display screen according to an embodiment of the present application is shown;

[0023] Figure 5 A scaling example diagram of a display screen according to an embodiment of the present application is shown;

[0024] Figure 6 A resolution adjustment scaling device 600 according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] Exemplary embodiments of the present disclosure will be described in greater detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure can be more thoroughly understood, and so that the scope of the present disclosure can be completely conveyed to those skilled in the art.

[0026] Figure 1 A schematic diagram of an application scenario 100 based on resolution adjustment scaling according to an embodiment of the present disclosure is shown. The application scenario 100 shows an application scenario when a display screen connected to a computing device is changed from one to multiple, and / or an application scenario when an existing display screen is replaced by a new display screen. Referring to Figure 1 In the application scenario of adding display screens, the computing device is initially connected to only display screen 0, and then N display screens, i.e., display screen 1 to display screen N, are connected, i.e., the computing device is changed from being connected to one screen to being connected to multiple screens. It should be noted that N can be a number determined as needed. For example, when N is 2, it means that the display screens connected to the computer device are increased by display screen 1 and display screen 2, and at this time the computing device is changed from being connected to one screen to being connected to three screens. In the application scenario of replacing display screens, display screen 0 is replaced by display screen M due to business needs.

[0027] In these two scenarios, since the configuration or number of display screens is changed, the resolution configured by the computing device for each display screen is correspondingly adjusted. The present disclosure is based on the problem that scaling does not automatically adjust when the resolution is adjusted, and adjusts the scaling according to the adjusted resolution, so that the desktop is presented with the best display effect and the user has a good experience.

[0028] For other application scenarios in which the resolution is adjusted, for example, the display screens are restored from multiple to one, or the resolution of the display screens is changed by manual modification by the user, although not shown in Figure 1 , but also within the scope of the application scenario of the present disclosure.

[0029] Figure 2 A schematic block diagram of a computing device 200 according to an embodiment of the present disclosure is provided. As shown in Figure 2 , the computing device 200 includes a processor 201 and a memory 202, and the processor 201 and the memory 202 are connected by a bus 203, such as an I2C (Inter-integrated Circuit) bus.

[0030] Specifically, processor 201 provides computing and control capabilities to support the operation of the entire computing device. Processor 201 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0031] Specifically, the memory 202 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.

[0032] Those skilled in the art will understand that Figure 2 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of the present invention, and does not constitute a limitation on the computing device on which the embodiments of the present invention are applied. A specific server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0033] The processor is used to run a computer program stored in the memory, and implements any of the resolution-based scaling methods provided in the embodiments of the present invention when executing the computer program.

[0034] Figure 3 A flowchart of a resolution-based scaling adjustment method 300 according to an embodiment of the present invention is shown. Method 300 is executed in a computing device (e.g., the aforementioned computing device 200) for adjusting scaling according to resolution to enable a desktop application to display optimally. Method 300 includes the steps of: determining the maximum supported scaling based on the adjusted current resolution in response to completion of current resolution adjustment; and performing scaling adjustment based on a comparison between the maximum scaling and the actual scaling.

[0035] like Figure 3 As shown, method 300 begins with step S310 and includes steps S310 and S320:

[0036] The S310, in response to the completion of the current resolution adjustment, determines the maximum scaling that the display can support at the current resolution; and

[0037] S320 adjusts the scaling according to the comparison result of the maximum scaling and the actual scaling.

[0038] Before the method of the present application is further elaborated, the basic technical terms in the present application are introduced first. The resolution in the present application includes the physical resolution and the compressed resolution of the display screen. The physical resolution and the supported resolution are two important parameters of the display screen. The physical resolution is also called the best resolution, the standard resolution, the original resolution, the true resolution or the actual resolution. It is a mathematical expression of the actual existing pixel row number multiplied by the column number of the display screen. It is an inherent parameter of the display screen and cannot be adjusted. Its meaning is the highest number of pixels that can be displayed by the display screen. The supported resolution is other resolutions supported by the display screen. No matter which resolution, it is usually expressed in the form of "horizontal pixel number x vertical pixel number", such as 800x600, 1024x768, 1280x1024, etc.

[0039] For example, as shown in the table, the physical resolution and the supported resolution provided by a display screen are shown. Among them, "3840x2160 (recommended)" is the physical resolution of the display screen, and other resolutions such as "2560x1600", "2560x1440" and other supported resolutions are other resolutions supported by the display screen. Figure 4

[0040] Copy mode: The copy mode is to make the multiple display screens connected by the device display the same content.

[0041] Extended mode: Two display screens are virtually combined into one large screen display to achieve a wider desktop space.

[0042] First, in step S310, in response to the completion of the current resolution adjustment, the maximum scaling that can be supported by the display screen under the current resolution is determined.

[0043] When the computing device is plugged in or the display screen is replaced, or the number of connected display screens changes, the resolution will be adjusted accordingly. After the resolution adjustment is completed, since the scaling cannot be adjusted adaptively, sometimes the desktop and application windows cannot be fully displayed.

[0044] Among them, the scenarios in which the display screen is adjusted include changes in the number of display screens and / or changes in the configuration of the display screen. Further, the number of display screens changes include an increase or decrease in the number of display screens; the configuration of the display screen changes include the display screen being replaced and / or the configuration of the display screen being modified and changed.

[0045] ​In some embodiments provided by the present application, when the accessed display screen changes from one to multiple, the display mode and the current resolution of the multiple display screens are determined according to preset rules. Specifically, when there is a same resolution supported by the multiple display screens, the multiple display screens are loaded in a copy mode, and the maximum value in the same resolution is determined as the current resolution of the multiple display screens; and when there is no same resolution supported by the multiple display screens, the multiple display screens are loaded in an extension mode, and the current resolution of each display screen is the best resolution of each display screen.

[0046] It should be noted that the copy mode mentioned in the present application refers to that the multiple display screens connected to the graphics card display the same content. The extension mode refers to that the multiple display screens are virtually combined into one large display screen to display the content together, so as to realize a wider desktop space.

[0047] For example, initially, the graphics card of the computing device is connected to only one display screen. When one display screen is added, so that the graphics card of the device supports two display screens at the same time, the physical resolution and the supported resolution of the two display screens are first acquired, and the resolutions of the two display screens are compared one by one. If the supported resolutions or the physical resolutions of the two display screens can find the same value, i.e., the resolutions with the same horizontal pixels and vertical pixels, the current resolutions of the two display screens are set to the maximum resolution in the same value, and at this time, the two display screens are loaded in the copy mode since they have the same resolution.

[0048] For example, if the supported resolutions or the physical resolutions of the two display screens cannot find the same value after the comparison, the current resolutions of the two display screens are set to the respective best resolutions. Further, since the current resolutions of the two display screens are not the same, the two display screens are loaded in the extension mode to obtain a better display effect of the desktop application.

[0049] In another embodiment provided by the present application, when the accessed display screen changes from one to multiple, the display can also be performed according to the preconfigured resolution and display mode.

[0050] For example, the preconfiguration can be set as follows: after the multiple screens are accessed, the extension mode is recommended to be loaded, and the resolution of each display screen is the best resolution of the display screen itself. Of course, the default parameters in the preconfiguration can also be adopted, and the present application does not limit this.

[0051] In some other embodiments provided by the present application, when the display screen changes from the multiple screen mode to the single screen mode, the current resolution of the display screen returns to the resolution before the multiple screens are accessed.

[0052] In some embodiments, when the display screen is replaced by a new one due to a problem, the optimal resolution of the newly connected display screen is set as the current resolution.

[0053] In some other embodiments, the display screen is not replaced or the number of display screens is not changed, but the current resolution is changed due to manual modification by the user.

[0054] In the above scenarios where the resolution is adjusted, in response to completion of the adjustment of the current resolution, the maximum zoom supported by the display screen at the current resolution is determined. Specifically, the maximum vertical zoom supported by the display screen is calculated according to the vertical resolution of the current resolution; the maximum horizontal zoom supported by the display screen is calculated according to the horizontal resolution of the current resolution; and the maximum zoom is determined according to the minimum value between the maximum vertical zoom and the maximum horizontal zoom.

[0055] Further, in some embodiments, when there are multiple display screens and the resolutions of the multiple display screens are different, the maximum zoom supported by the current resolution is calculated for each display screen respectively, and the minimum value among the maximum zooms supported by all the display screens is taken as the maximum zoom supported in the current mode.

[0056] After the resolution adjustment is completed, the maximum zoom supported by the current resolution is calculated, and the calculation process is as follows.

[0057] For each display screen, after the adjustment of the current resolution is completed, the maximum horizontal zoom and the maximum vertical zoom supported by the current resolution are calculated as follows.

[0058]

[0059]

[0060] wherein, is the maximum horizontal zoom, is the number of horizontal pixels corresponding to the current resolution; is the maximum vertical zoom, is the number of vertical pixels corresponding to the current resolution.

[0061] Further, the maximum zoom supported by the current resolution is determined according to the minimum value between the maximum horizontal zoom and the maximum vertical zoom. Specifically, the formula is as follows.

[0062]

[0063] When there are multiple display screens, the maximum zoom supported by each display screen at the current resolution is calculated respectively. The minimum value among the maximum scaling supported by all displays is taken as the maximum scaling that the current mode can support. The calculation formula is as follows:

[0064] )

[0065] in, This represents the maximum scaling supported by the current resolution of the i-th display screen.

[0066] like Figure 5 As shown, since the display provides zoom starting from 100% and increasing by a base of 25%, the calculated maximum zoom value may not be in the display's zoom list. Therefore, by rounding the maximum zoom down by a base of 0.25, we can obtain the zoom value closest to the calculated maximum zoom value. For example, a maximum zoom between 1.25 and 1.5 will be rounded down to 1.25, and a maximum zoom between 1.5 and 1.75 will be rounded down to 1.5. The specific formula is as follows:

[0067]

[0068] right Round down from the base of 0.25, with a range of [1.0, ...]. ].

[0069] in, This represents the maximum scaling supported at the current mode and resolution.

[0070] For example, in a scenario with only a single display screen, the adjusted current resolution of the display screen is "2048×1024", with 2048 horizontal pixels and 1024 vertical pixels. Based on the number of horizontal pixels, the maximum horizontal scaling is calculated as follows:

[0071]

[0072]

[0073] Therefore, the maximum scaling supported by the current resolution of this display is 1.333333. Next, 1.3333333 is rounded down to 1.25 using the base of 0.25. That is, the maximum scaling supported by the display at the current resolution is 125.

[0074] Next, in step S320, scaling is adjusted based on the comparison between the maximum scaling and the actual scaling.

[0075] After the maximum zoom supported under the current resolution is determined, the current zoom of the computing device is obtained, and the calculated maximum zoom is compared with the actual zoom of the computing device. If the current zoom of the computing device is greater than the calculated maximum zoom, the zoom of the computing device is set to the calculated maximum zoom.

[0076] Further, after the current resolution and zoom setting are determined, the determined current resolution and zoom setting are configured to the window pipe, and a broadcast signal is sent, so that each application on the desktop adjusts the window and other display according to the broadcast signal.

[0077] The method for adjusting zoom based on resolution provided by the present application aims at the problem of incomplete display of the desktop and application window caused by resolution change in the multi-screen or single-screen mode. In various scenarios causing resolution adjustment, the zoom is adjusted based on the adjusted resolution, so that the adjusted zoom matches the resolution, and each desktop application can be displayed completely, and the window display is ensured not to overflow in each scenario. Especially in the scenario of single screen changing into multi-screen, the resolutions of each display screen are compared, the optimal display mode and the resolutions of each screen are determined, and then the zoom is adjusted based on the resolutions, so that the optimal display effect is ensured in the multi-screen mode. In addition, when the multi-screen mode returns to the single-screen mode, the previous resolution configuration of the user can be automatically restored, and a good experience is provided for the user.

[0078] Embodiments of the present application also provide a device 600 for adjusting zoom based on resolution, which can perform each step of the method 300 for adjusting zoom based on resolution as described above. Next, the device 600 for adjusting zoom based on resolution is described in conjunction with Figure 6 FIG. 6.

[0079] As shown in Figure 6 , the device 600 for adjusting zoom based on resolution includes a maximum zoom determination unit 610 and a zoom adjustment unit 620.

[0080] The maximum zoom determination unit 610 is adapted to determine the maximum zoom that the display screen can support under the current resolution in response to the completion of the current resolution adjustment.

[0081] The zoom adjustment unit 620 is adapted to adjust the zoom according to the comparison result of the maximum zoom and the actual zoom.

[0082] According to an implementation manner of the present application, the zoom adjustment unit 620 includes a comparison unit adapted to compare the maximum zoom with the actual zoom, and an adjustment unit adapted to adjust the zoom to the maximum zoom when the actual zoom is greater than the maximum zoom.

[0083] According to an implementation manner of the present application, the maximum scaling determination unit 610 comprises: a vertical maximum scaling determination unit, adapted to calculate the maximum vertical scaling that the display screen can support according to the vertical resolution of the current resolution; a horizontal maximum scaling determination unit, adapted to calculate the maximum horizontal scaling that the display screen can support according to the horizontal resolution of the current resolution; and a scaling determination unit, adapted to determine the maximum scaling according to the minimum value between the maximum vertical scaling and the maximum horizontal scaling.

[0084] According to an implementation manner of the present application, the current resolution adjustment comprises: the current resolution is adjusted due to the change in the number of display screens, and / or the current resolution is adjusted due to the change in the configuration of the display screen.

[0085] According to an implementation manner of the present application, when the number of display screens increases from one to a plurality, the current resolution corresponding to each of the plurality of display screens is determined according to a preset rule.

[0086] According to an implementation manner of the present application, when the resolutions supported by the plurality of display screens have the same resolution, the maximum value in the same resolution is determined as the current resolution corresponding to each of the plurality of display screens; and when the resolutions supported by the display screens do not have the same resolution, the current resolution of each display screen is determined as the optimal resolution of the display screen.

[0087] According to an implementation manner of the present application, when the number of display screens decreases from a plurality to one, the current resolution of the one display screen is restored to the resolution of the one display screen before the plurality of display screens are accessed.

[0088] It should be noted that, for the convenience and brevity of description, the specific working process of the computing device described above can be referred to the corresponding process in the foregoing embodiment of the resolution adjustment scaling, which will not be described herein.

[0089] The embodiment of the present application also provides a storage medium for computer readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any resolution adjustment scaling method provided in the specification of the embodiment of the present application.

[0090] The storage medium can be an internal storage unit of the computing device, such as a hard disk or a memory of the computing device. The storage medium can also be an external storage device of the computing device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc.

[0091] The various techniques described herein can be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatus of the application, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard disks, USB flash drives, optical tapes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the subject application.

[0092] Where the program code is executed by a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The storage medium is configured to store program code, which carries out the resolution-adjusted scaling method of the application when executed by the processor.

[0093] In the context of this document, a "storage medium" can be any physical medium that stores information. The term "storage medium" shall therefore include without being limited to disks, USB flash drives, optical disks, and so on.

[0094] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order not to obscure the understanding of this description.

[0095] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order not to obscure the understanding of this description.

[0096] Similarly, it is to be understood that the embodiments of the present application can be alternately grouped into individual embodiments, figures, or descriptions thereof, in order to streamline the disclosure and aid in the understanding of one or more of the individual inventive aspects. However, the method of this disclosure is not to be interpreted to reflect an intention that the claimed application requires more features than are explicitly recited in each claim. Those skilled in the art will understand that the modules, or units, or components of the devices in the examples disclosed herein can be arranged in a device as described in the example, or alternatively can be located in one or more devices different from the device in the example. The modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.

[0097] Those skilled in the art will understand that the modules in the devices in the examples can be adaptively changed and disposed in one or more devices different from the example. The modules or units or components in the examples can be combined into one module or unit or component, and further can be divided into multiple sub-modules or sub-units or sub-components. All the features disclosed in this specification (including the claims, abstract, and drawings) and all the processes or units of any method or device so disclosed can be combined in any combination, except where such features and / or processes or units are mutually exclusive. Each feature disclosed in this specification (including the claims, abstract, and drawings) can be replaced by alternative features providing the same, equivalent, or similar functionality unless expressly stated otherwise.

[0098] Further, those skilled in the art will understand that the combination of features of different embodiments implies that such combination is within the scope of the application and forms a different embodiment. Moreover, some of the embodiments described herein are combinations of method or method elements with the apparatus or apparatus elements for performing the method or method elements. Thus, the method or method elements represented by a processor of a computer system or other means for carrying out the method or method elements are expressly contemplated as being an apparatus for performing the method or method elements. Further, elements of an apparatus described herein are expressly contemplated as being means for performing the function performed by the element.

[0099] As used herein, unless otherwise indicated, the use of the ordinal adjectives "first", "second", "third", etc., merely to distinguish different instances of an object to which the adjective refers, and are not intended to denote a given sequence or order of such objects. Thus, a first object discussed below could be termed a second object without departing from the teachings of the application.

[0100] While the application has been described in terms of several embodiments, it will be apparent to those of ordinary skill in the art that many modifications, additions, substitutions, and the like can be made to the applications set forth herein without departing from the scope of the application as understood by the skilled artisan in light of the foregoing description. Moreover, it is to be understood that the phraseology and terminology employed herein are for the purpose of description and teaching without intent that the that the application be limited to such phraseology and terminology.

Claims

1. A method for adjusting zoom based on resolution, the method comprising the steps of: determining a maximum zoom that a display screen can support at a current resolution in response to completion of a current resolution adjustment; comparing the maximum zoom with an actual zoom; and adjusting the zoom to the maximum zoom when the actual zoom is greater than the maximum zoom; wherein the current resolution adjustment comprises adjusting the current resolution in response to a change in a number of display screens, and the step of adjusting the current resolution in response to the change in the number of display screens comprises: determining a current resolution corresponding to each of the display screens in accordance with a preset rule when the number of display screens increases from one to a plurality, including: loading the plurality of display screens in a copy mode when there is a same resolution supported by the plurality of display screens, and determining a maximum value in the same resolution as the current resolution of the plurality of display screens; and loading the plurality of display screens in an extend mode when there is no same resolution supported by the plurality of display screens, and the current resolution of each of the display screens is a best resolution of each of the display screens. The step of determining the maximum zoom that the display screen can support at the current resolution comprises: calculating a maximum vertical zoom that the display screen can support according to a vertical resolution of the current resolution; calculating a maximum horizontal zoom that the display screen can support according to a horizontal resolution of the current resolution; and determining the maximum zoom according to a minimum value of the maximum vertical zoom and the maximum horizontal zoom. 3.The method of claim 1 or 2, wherein the current resolution adjustment further comprises: adjusting the current resolution in response to a change in a configuration of the display screen. 4.The method of claim 3, wherein the step of adjusting the current resolution in response to the change in the number of display screens further comprises: restoring the current resolution of one of the display screens to a resolution of the one of the display screens before the one of the display screens is connected to the plurality of display screens when the number of the display screens decreases from the plurality to one. 5.An apparatus for adjusting zoom based on resolution, comprising: a maximum zoom determining unit adapted to determine a maximum zoom that a display screen can support at a current resolution in response to completion of a current resolution adjustment; a comparing unit adapted to compare the maximum zoom with an actual zoom; and an adjusting unit adapted to adjust the zoom to the maximum zoom when the actual zoom is greater than the maximum zoom; wherein the current resolution adjustment comprises adjusting the current resolution in response to a change in a number of display screens, and the step of adjusting the current resolution in response to the change in the number of display screens comprises: determining a current resolution corresponding to each of the display screens in accordance with a preset rule when the number of display screens increases from one to a plurality, including: loading the plurality of display screens in a copy mode when there is a same resolution supported by the plurality of display screens, and determining a maximum value in the same resolution as the current resolution of the plurality of display screens; and loading the plurality of display screens in an extend mode when there is no same resolution supported by the plurality of display screens, and the current resolution of each of the display screens is a best resolution of each of the display screens. ​ ​ ​ 2. The method of claim 1, wherein, ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ When resolutions supported by the multiple display screens have the same resolution, the multiple display screens are loaded in a duplicate mode, and a maximum value in the same resolution is determined as a current resolution of the multiple display screens; and when resolutions supported by the multiple display screens do not have the same resolution, the multiple display screens are loaded in an extended mode, and a current resolution of each display screen is a best resolution of each display screen.

6. A computing device comprising: at least one processor; and a memory storing program instructions configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method of adjusting scaling based on resolution according to any one of claims 1-4.

7. A readable storage medium storing program instructions, which, when read and executed by a computing device, cause the computing device to perform the method of adjusting scaling based on resolution according to any one of claims 1-4.

Citation Information

Patent Citations

  • System and method for displaying a mirror

    CN103530078A

  • Method and Device for Processing Display Information

    CN111949236A