CN116166153A - Screen display control method and device, electronic equipment and medium - Google Patents
Screen display control method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN116166153A CN116166153A CN202111412093.5A CN202111412093A CN116166153A CN 116166153 A CN116166153 A CN 116166153A CN 202111412093 A CN202111412093 A CN 202111412093A CN 116166153 A CN116166153 A CN 116166153A
- Authority
- CN
- China
- Prior art keywords
- mouse
- screen
- current
- coefficient
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
- G06F3/0383—Signal control means within the pointing device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the application discloses a screen display control method, a device, electronic equipment and a medium. The method comprises the following steps: receiving a target mouse DPI coefficient and the resolution of a target screen sent by a target node, and determining the resolution of the current screen; the target mouse DPI coefficient is the mouse DPI coefficient when the mouse is displayed on the target screen; determining a current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen; and if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse. According to the scheme, the DPI coefficient of the mouse displayed on the current screen can be adaptively adjusted, so that the sliding display sensitivity of the mouse on the current screen is adapted to the resolution of the current screen, the mouse can also present relatively consistent moving speed when moving from other screens to the current screen with different resolutions, and the display effect of the mouse on the current screen is improved.
Description
Technical Field
The embodiment of the application relates to the technical field of screen display, in particular to a screen display control method, a device, electronic equipment and a medium.
Background
In a distributed system at present, an output node is often required to be connected with a plurality of devices, and data is output through the plurality of devices. For example, for a KVM system, multiple output nodes may be respectively connected to multiple screens, and an interface of a host computer connected to an input node may be synchronously displayed through multiple screens respectively connected to multiple output nodes.
The physical resolutions of different screens connected with the output node may be different, and when the mouse is displayed on the different screens, the movement distance displayed on the different screens may be different when the mouse moves a fixed distance, so that the effect that the movement speed of the mouse is too slow or too fast is presented, and the display effect when the mouse moves from one screen to another screen is affected.
Disclosure of Invention
The embodiment of the application provides a screen display control method, a device, electronic equipment and a medium, so as to adaptively adjust the display effect of a mouse on different screens.
In one embodiment, an embodiment of the present application provides a screen display control method, including:
receiving a target mouse DPI coefficient and the resolution of a target screen sent by a target node, and determining the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
determining a current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen;
and if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
In another embodiment, an embodiment of the present application further provides a screen display control apparatus, including:
the resolution determining module is used for receiving the target mouse DPI coefficient and the resolution of the target screen sent by the target node and determining the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
the current mouse DPI coefficient determining module is used for determining the current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen;
and the display control module is used for displaying the mouse on the current screen based on the current mouse DPI coefficient if the mouse is transferred to the current screen.
In yet another embodiment, an electronic device is provided in an embodiment of the present application, including: one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the screen display control method according to any one of the embodiments of the present application.
In one embodiment, the present application further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the screen display control method according to any one of the embodiments of the present application.
According to the technical scheme, the target mouse DPI coefficient and the resolution of the target screen, which are sent by the target node, are received, the resolution of the current screen is determined, the current mouse DPI coefficient displayed on the current screen by the mouse is determined according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen, if the mouse is transferred to the current screen, the current mouse DPI coefficient suitable for the resolution of the current screen is adaptively calculated based on the current mouse DPI coefficient, so that when the mouse moves a fixed distance, the moving distance which is suitable for the size of the current screen can be displayed on the current screen, the situation that the moving speed of the mouse is too slow or too fast due to the fixation of the DPI coefficient when the mouse moves from other screens to the current screen is avoided, the moving speed of the mouse is consistent with the moving speed when the mouse is displayed on other screens when the mouse is transferred to the current screen can be ensured, the display effect of the mouse on the current screen is improved, and the user experience is improved.
Drawings
FIG. 1 is a flowchart of a screen display control method according to an embodiment of the present application;
FIG. 2 is a schematic view of a plurality of screens provided in one embodiment of the present application;
FIG. 3 is a flowchart of a screen display control method according to another embodiment of the present application;
FIG. 4 is a flowchart of a screen display control method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a screen display control device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
Detailed Description
Fig. 1 is a flowchart of a screen display control method according to an embodiment of the present application. The screen display control method provided by the embodiment of the application can be suitable for the situation of controlling the display of the screen. Typically, the embodiment of the application is suitable for controlling the display of the mouse on the screen. The method may in particular be performed by a screen display control device, which may be implemented in software and/or hardware, which may be integrated in an electronic apparatus capable of implementing the screen display control method. Referring to fig. 1, the method in the embodiment of the present application specifically includes:
s110, receiving a target mouse DPI coefficient and a target screen resolution sent by a target node, and determining the resolution of a current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen.
In the embodiment of the application, the target screen and the current screen may be a screen that displays data of the same source in the same system. For example, in the KVM distributed system, the input node is connected to the host computer, and the four output nodes are respectively connected to four screens, as shown in fig. 2, where the screen 1, the screen 2, the screen 3, and the screen 4 are respectively connected to the four output nodes, and all of them display interfaces of the host computer to which the input node is connected. The physical resolution of different screens may be different, i.e. the size of the different screens may be different. The arrows in fig. 2 show the display effect of the mouse on the screen. The mouse DPI refers to a pixel point that moves on a screen every one inch of movement of the mouse. The DPI coefficient of the mouse is the ratio of the actual moving pixel point corresponding to one inch of movement reported by the mouse to the actual moving pixel point reported by the mouse. The DPI mouse coefficient may be set on the host computer, for example, the number of pixels moved by one inch reported by the mouse is 1, and the number of pixels actually moved on the host computer may be set to 2.2, so that the DPI mouse coefficient is 2.2. The target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen. The current mouse DPI coefficient is the mouse DPI coefficient when the mouse is displayed on the current screen. The resolution of the target screen may be a physical resolution of the target screen. The resolution of the current screen may be a physical resolution of the current screen.
In the embodiment of the application, the target node may acquire the resolution of the target screen, determine the target mouse DPI coefficient displayed on the target screen by the mouse, and send the target mouse DPI coefficient and the resolution of the target mouse to the current node. The process of the target node obtaining the resolution of the target screen may be: and detecting the hot plug signal, if the target screen is determined to be connected with the target node according to the hot plug signal, acquiring the EDID (Extended Display Identification Data ) of the target screen, and acquiring the resolution of the target screen through the EDID. The determining process of the DPI coefficient of the target mouse comprises the following steps: detecting whether a target mouse DPI coefficient setting operation exists on a target screen by a user, and if so, taking the mouse DPI coefficient set on the target screen by the user as the target mouse DPI coefficient. The determining process of the target mouse DPI coefficient may further include: and receiving the resolutions of other mouse DPI coefficients sent by other nodes and other screens connected with other nodes, and calculating the target mouse DPI coefficients according to the resolutions of the target screen, the resolutions of other mouse DPI coefficients and the resolutions of other screens connected with other nodes.
The current screen resolution determination process includes: if the current node is detected to be connected with the current screen through the hot plug signal, reading the resolution of the current screen through the parameter information stored in the current screen.
The process of determining the resolution of the current screen by the current node may be the same as the process of determining the resolution of the target screen by the target node, that is, after determining that the current screen is connected to the target node by the hot plug signal, the EDID of the current screen is obtained, and the resolution of the current screen is determined by the EDID of the current screen.
The target mouse DPI coefficient and the resolution of the target screen may be sent after the target node detects that the user has performed a target mouse DPI coefficient setting operation on the target screen, or after the mouse slides from the target screen to the current screen.
S120, determining the current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen.
For example, when the mouse is displayed on the screen 1, each inch of movement may move 10 cm on the screen 1, the screen 3 is smaller in size, and if the mouse is still moved by one inch on the screen 3, the movement on the screen 3 may be too fast, the movement span is large, and the movement display effect of the mouse is affected. Therefore, in the embodiment of the application, the current node calculates the current mouse DPI coefficient displayed on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen, so that the problems that the mouse moving speed is too slow or too fast and the display effect is not ideal due to the fact that the current node still displays on the current screen with the fixed mouse DPI coefficient are solved.
In the embodiment of the present application, the current node may be any output node connected with a screen in the distributed system. As long as any one of the output nodes connected with the screen receives the target mouse DPI coefficient and the resolution of the target screen sent by the target node and determines the resolution of the current screen, the method in the embodiment of the application can be executed, the target node may be any one of the output nodes connected with the screen except the current node, the user sets the target mouse DPI coefficient on the target node, or the target node has determined the target mouse DPI coefficient displayed on the target screen by the mouse.
And S130, if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
Illustratively, when the mouse is transferred to the current screen, the current node displays the mouse on the current screen based on the current mouse DPI coefficient. When the mouse moves, the current node calculates the distance that the mouse should move on the current screen when the mouse moves by one inch according to the current mouse DPI coefficient, so that the moving distance of the mouse displayed on the current screen is adapted to the resolution of the current screen, and an ideal moving display effect is realized.
According to the technical scheme, the target mouse DPI coefficient and the resolution of the target screen, which are sent by the target node, are received, the resolution of the current screen is determined, the current mouse DPI coefficient displayed on the current screen by the mouse is determined according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen, if the mouse is transferred to the current screen, the current mouse DPI coefficient suitable for the resolution of the current screen is adaptively calculated based on the current mouse DPI coefficient, so that when the mouse moves a fixed distance, the moving distance which is suitable for the size of the current screen can be displayed on the current screen, the situation that the moving speed of the mouse is too slow or too fast due to the fixation of the DPI coefficient when the mouse moves from other screens to the current screen is avoided, the moving speed of the mouse is consistent with the moving speed when the mouse is displayed on other screens when the mouse is transferred to the current screen can be ensured, the display effect of the mouse on the current screen is improved, and the user experience is improved.
Fig. 3 is a flowchart of a screen display control method according to another embodiment of the present application. The embodiments of the present application are further optimized for the above embodiments, and details not described in detail in the embodiments of the present application are detailed in the above embodiments. Referring to fig. 3, the screen display control method provided in the embodiment of the present application may include:
s210, receiving a target mouse DPI coefficient and a target screen resolution sent by a target node, and determining the current screen resolution; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen.
S220, determining a resolution ratio according to the resolution of the target screen and the resolution of the current screen.
For example, the relationship between the target mouse DPI coefficient and the current mouse DPI coefficient may be determined according to the relationship between the resolution of the target screen and the resolution of the current screen, thereby determining a specific value of the current mouse DPI coefficient. In the embodiment of the application, the resolution ratio is determined according to the resolution of the target screen and the resolution of the current screen, so that the relation between the DPI coefficient of the target mouse and the DPI coefficient of the current mouse is represented according to the ratio.
S230, determining the current mouse DPI coefficient according to the resolution ratio and the target mouse DPI coefficient.
Illustratively, there is a relationship between the ratio of the target mouse DPI coefficient to the current mouse DPI coefficient and the resolution ratio, and the ratio of the resolution of the target screen to the resolution of the current screen is equal to the ratio of the target mouse DPI coefficient to the current mouse DPI coefficient, or the ratio of the resolution of the current screen to the resolution of the target screen is equal to the ratio of the current mouse DPI coefficient to the target mouse DPI coefficient.
Determining a resolution ratio according to the resolution of the target screen and the resolution of the current screen, including: taking the ratio of the resolution of the current screen to the resolution of the target screen as a resolution ratio; correspondingly, determining the current mouse DPI coefficient according to the resolution ratio and the target mouse DPI coefficient comprises the following steps: and taking the product of the resolution ratio and the target mouse DPI coefficient as the current mouse DPI coefficient.
Specifically, the current mouse DPI coefficient may be determined according to the following formula:
DPI1=DPI2*(D1/D2);
wherein, DPI1 is the current mouse DPI coefficient, DPI2 is the target mouse DPI coefficient, D1 is the resolution of the current screen, and D2 is the resolution of the target screen. D1/D2 is the resolution ratio.
And S240, if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
According to the technical scheme, the resolution ratio is determined according to the resolution of the target screen and the resolution of the current screen, the current mouse DPI coefficient is determined according to the resolution ratio and the target mouse DPI coefficient, and the current mouse DPI coefficient is adaptively determined according to the resolution of the current mouse, so that the mouse moving distance displayed on the current screen when the mouse moves a certain distance can be matched with the resolution of the current screen, and a good display effect is achieved.
Fig. 4 is a flowchart of a screen display control method according to another embodiment of the present application. The embodiments of the present application are further optimized for the above embodiments, and details not described in detail in the embodiments of the present application are detailed in the above embodiments. Referring to fig. 4, the screen display control method provided in the embodiment of the present application may include:
s310, receiving a target mouse DPI coefficient and a target screen resolution sent by a target node, and determining the resolution of a current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen.
S320, determining the current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen.
S330, if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
And S340, if the mouse is transferred from the current screen to other screens, sending the resolution of the current screen and the DPI coefficient of the current mouse to other nodes connected with other screens, so that the other nodes determine the DPI coefficient of the mouse displayed on the other screens according to the resolution of the current screen and the DPI coefficient of the current mouse.
For example, if the mouse is displayed on the current screen, the current screen is transferred to other screens, the resolution of the current screen and the current mouse DPI coefficient are sent to other nodes connected with other screens, and after the other nodes receive the resolution of the current screen and the current mouse DPI coefficient, the other nodes combine the acquired resolution to determine the mouse DPI coefficient, namely the other mouse DPI coefficient, so that when the mouse is displayed on the screen connected with the nodes, the movement distance displayed on the screen when the mouse moves a certain distance is adapted to the resolution of the screen, and a better display effect is achieved. In this case, the other nodes may be output nodes to which any one mouse other than the current node is transferred among the output nodes to which the screen is connected in the distributed system.
In an embodiment of the present application, the method further includes: if the current mouse DPI coefficient setting operation of the user on the current node is detected, the current mouse DPI coefficient set by the user and the resolution of the current screen are sent to other nodes in a network multicast mode, so that the other nodes determine the mouse DPI coefficient displayed on other screens by the mouse according to the resolution of the current screen and the current mouse DPI coefficient.
The user can set the current mouse DPI coefficient on the current node, so that the current mouse DPI coefficient meeting the user requirement is set, and the mouse has a good display effect when displayed on the current screen. In this case, the current node may send the current mouse DPI coefficient set by the user and the resolution of the current screen to other nodes in a network multicast manner, so that the other nodes can calculate the mouse DPI coefficient displayed on the other screens by the mouse according to the current mouse DPI coefficient sent by the current node and the resolution of the current screen. In this case, the other nodes may be at least one output node except the current node, for example, all output nodes, among the output nodes to which the screen is connected in the distributed system.
According to the technical scheme, if the mouse is transferred from the current screen to other screens, the resolution of the current screen and the DPI coefficient of the current mouse are sent to other nodes connected with other screens, so that the other nodes can determine the DPI coefficient of the mouse displayed on the other screens according to the resolution of the current screen and the DPI coefficient of the current mouse, corresponding information is timely sent to the other nodes, the other nodes can timely determine the DPI coefficient of the mouse according to the information sent by the current nodes, the displayed moving distance is adapted to the resolution of the other screens when the mouse is displayed on the other screens connected with the other nodes, the situation that the moving speed of the mouse is too slow or too fast due to the fixation of the DPI coefficient when the mouse is moved from the other screens to the current screen is avoided, the fact that the moving speed of the mouse is identical to the moving speed when the mouse is displayed on the other screens can be guaranteed when the mouse is transferred to the current screen is achieved, good display effects are achieved, and viewing experience of users is improved.
The embodiments of the present application are detailed descriptions of a specific implementation of a screen display control method, and details not described in the embodiments of the present application are detailed in the above embodiments. The method may include:
in the KVM system, an input node is connected with a computer host, and an output node is connected with a screen. The embodiment of the application is described in detail for the case that at least two output nodes are respectively connected with at least two screens. The output node enables the thread to detect physical size information of the connected screen. When the output node is connected with the screen or switches the screen, the DA chip detects the change of the hot plug signal and reports the change to the software, and the software acquires the EDID information of the connected screen or acquires the EDID information of the switched screen again, so that the physical resolution of the currently connected screen is determined.
According to the output node of the screen connection where the mouse is initially located, according to the test result in windows, the initial mouse DPI coefficient is 2.2 under the windows, the default coefficient of the KVM system is 2.2, and a user can automatically adjust the mouse DPI coefficient. The user-adjusted mouse DPI coefficient is a mouse DPI coefficient that the user considers to satisfy his own viewing needs when the mouse is displayed on the screen on which the mouse is initially located, but may not be suitable for display on other screens. Therefore, after the user selects the proper mouse DPI coefficient by himself, the mouse DPI coefficient set by the user can be synchronized to all other output nodes in a network multicast mode, and the other output nodes calculate the DPI coefficient suitable for self screen display according to the acquired physical screen resolution. The calculation formula is as follows:
DPI1=DPI2*(D1/D2);
wherein DPI1 is a mouse DPI coefficient of a screen display where a mouse is connected to other output nodes, DPI2 is a mouse DPI coefficient of a screen display where a mouse is connected to an initial output node, D1 is a physical resolution of a screen connected to other output nodes, and D2 is a physical resolution of a screen connected to the initial output node. When the mouse moves to other nodes, the other nodes display the mouse based on the calculated DPI coefficients of the other nodes.
In addition, when the mouse moves from the previous screen to the current screen, the previous node connected with the previous screen sends the mouse DPI coefficient and the physical resolution of the previous node to the current node connected with the current screen, and the current node calculates the mouse DPI coefficient displayed by the mouse on the current screen according to the information sent by the previous node and the physical resolution of the current screen, and the calculation formula is as follows:
DPI1=DPI2*(D1/D2);
wherein DPI1 is a mouse DPI coefficient of a current screen displayed by a mouse connected to a current output node, DPI2 is a mouse DPI coefficient of a previous screen displayed by a mouse connected to a previous output node, 1 is a physical resolution of the current screen connected to the current output node, and D2 is a physical resolution of the previous screen connected to the previous output node. The current node displays the mouse based on the calculated DPI 1.
Fig. 5 is a schematic structural diagram of a screen display control device according to an embodiment of the present application. The device can be applied to the case of controlling the display of a screen. Typically, the embodiment of the application is suitable for controlling the display of the mouse on the screen. The apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in an electronic device. Referring to fig. 5, the apparatus specifically includes:
the resolution determining module 410 is configured to receive the target mouse DPI coefficient and the resolution of the target screen sent by the target node, and determine the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
the current mouse DPI coefficient determining module 420 is configured to determine a current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen, and the resolution of the current screen;
and the display control module 430 is configured to display the mouse on the current screen based on the current DPI coefficient of the mouse if the mouse is transferred to the current screen.
In this embodiment of the present application, the target mouse DPI coefficient and the target screen resolution are sent after the target node detects that the user has performed a setting operation on the target mouse DPI coefficient on the target screen, or sent after the mouse slides from the target screen to the current screen.
In the embodiment of the present application, the current mouse DPI coefficient determining module 420 includes:
and the resolution ratio determining unit is used for determining a resolution ratio according to the resolution of the target screen and the resolution of the current screen.
And the determining unit is used for determining the current mouse DPI coefficient according to the resolution ratio and the target mouse DPI coefficient.
In the embodiment of the present application, the resolution ratio determining unit is specifically configured to:
taking the ratio of the resolution of the current screen to the resolution of the target screen as a resolution ratio;
correspondingly, the determining unit is specifically configured to:
and taking the product of the resolution ratio and the target mouse DPI coefficient as the current mouse DPI coefficient.
In an embodiment of the present application, the apparatus further includes:
and the first sending module is used for sending the resolution of the current screen and the DPI coefficient of the current mouse to other nodes connected with other screens if the mouse is transferred from the current screen to the other screens, so that the other nodes determine the DPI coefficient of the mouse displayed on the other screens according to the resolution of the current screen and the DPI coefficient of the current mouse.
In an embodiment of the present application, the apparatus further includes:
and the second sending module is used for sending the current mouse DPI coefficient set by the user and the resolution of the current screen to other nodes in a network multicast mode if the current mouse DPI coefficient setting operation of the user on the current node is detected, so that the other nodes determine the mouse DPI coefficient displayed on other screens by the mouse according to the resolution of the current screen and the current mouse DPI coefficient.
The screen display control device provided by the application embodiment can execute the screen display control method provided by any embodiment of the application, and has the corresponding function modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Fig. 6 illustrates a block diagram of an exemplary electronic device 512 suitable for use in implementing embodiments of the present application. The electronic device 512 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 6, the electronic device 512 may include: one or more processors 516; the memory 528 is configured to store one or more programs that, when executed by the one or more processors 516, cause the one or more processors 516 to implement the screen display control method provided by the embodiments of the present application, includes:
receiving a target mouse DPI coefficient and the resolution of a target screen sent by a target node, and determining the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
determining a current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen;
and if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
Components of electronic device 512 may include, but are not limited to: one or more processors 516, a memory 528, a bus 518 that connects the different device components (including the memory 528 and the processor 516).
A program/utility 540 having a set (at least one) of program modules 542 may be stored in, for example, memory 528, such program modules 542 including, but not limited to, an operating device, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 542 generally perform the functions and/or methods in the embodiments described herein.
The electronic device 512 may also be in communication with one or more external devices 514 and/or a display 524, and may also be in communication with one or more devices that enable a user to interact with the electronic device 512, and/or with any device (e.g., network card, modem, etc.) that enables the electronic device 512 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 522. Also, the electronic device 512 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through the network adapter 520. As shown in fig. 6, the network adapter 520 communicates with other modules of the electronic device 512 over the bus 518. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in connection with electronic device 512, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, data backup storage devices, and the like.
The one or more processors 516 perform various functional applications and data processing by running at least one of the other programs among the plurality of programs stored in the memory 528, for example, implementing a screen display control method provided in an embodiment of the present application.
One embodiment of the present application provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a screen display control method, comprising:
receiving a target mouse DPI coefficient and the resolution of a target screen sent by a target node, and determining the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
determining a current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen;
and if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
Any combination of one or more computer-readable storage media may be employed as the computer storage media of the embodiments herein. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or means, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of the present application, a computer-readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or means.
The computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can transmit, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, the scope of which is defined by the scope of the appended claims.
Claims (10)
1. A screen display control method, the method comprising:
receiving a target mouse DPI coefficient and the resolution of a target screen sent by a target node, and determining the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
determining a current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen;
and if the mouse is transferred to the current screen, displaying the mouse on the current screen based on the DPI coefficient of the current mouse.
2. The method of claim 1, wherein the target mouse DPI coefficients and the target screen resolution are sent after the target node detects a user's target mouse DPI coefficient setting operation on the target screen or after the mouse is slid from the target screen to the current screen.
3. The method of claim 1, wherein determining the current mouse DPI coefficient for the mouse to display on the current screen based on the target mouse DPI coefficient, the resolution of the target screen, and the resolution of the current screen comprises:
determining a resolution ratio according to the resolution of the target screen and the resolution of the current screen;
and determining the current mouse DPI coefficient according to the resolution ratio and the target mouse DPI coefficient.
4. A method according to claim 3, wherein determining the resolution ratio from the resolution of the target screen and the resolution of the current screen comprises:
taking the ratio of the resolution of the current screen to the resolution of the target screen as a resolution ratio;
correspondingly, determining the current mouse DPI coefficient according to the resolution ratio and the target mouse DPI coefficient comprises the following steps:
and taking the product of the resolution ratio and the target mouse DPI coefficient as the current mouse DPI coefficient.
5. The method of claim 1, wherein the determining of the current screen resolution comprises:
if the current node is detected to be connected with the current screen through the hot plug signal, reading the resolution of the current screen through the parameter information stored in the current screen.
6. The method according to claim 1, wherein the method further comprises:
and if the mouse is transferred from the current screen to other screens, sending the resolution of the current screen and the current mouse DPI coefficient to other nodes connected with other screens, so that the other nodes determine the mouse DPI coefficient displayed by the mouse on the other screens according to the resolution of the current screen and the current mouse DPI coefficient.
7. The method according to claim 1, wherein the method further comprises:
if the current mouse DPI coefficient setting operation of the user on the current node is detected, the current mouse DPI coefficient set by the user and the resolution of the current screen are sent to other nodes in a network multicast mode, so that the other nodes determine the mouse DPI coefficient displayed on other screens by the mouse according to the resolution of the current screen and the current mouse DPI coefficient.
8. A screen display control apparatus, the apparatus comprising:
the resolution determining module is used for receiving the target mouse DPI coefficient and the resolution of the target screen sent by the target node and determining the resolution of the current screen; the target node is a node connected with the target screen, and the target mouse DPI coefficient is a mouse DPI coefficient when the mouse is displayed on the target screen;
the current mouse DPI coefficient determining module is used for determining the current mouse DPI coefficient displayed by the mouse on the current screen according to the target mouse DPI coefficient, the resolution of the target screen and the resolution of the current screen;
and the display control module is used for displaying the mouse on the current screen based on the current mouse DPI coefficient if the mouse is transferred to the current screen.
9. An electronic device, the electronic device comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the screen display control method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the screen display control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111412093.5A CN116166153A (en) | 2021-11-25 | 2021-11-25 | Screen display control method and device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111412093.5A CN116166153A (en) | 2021-11-25 | 2021-11-25 | Screen display control method and device, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116166153A true CN116166153A (en) | 2023-05-26 |
Family
ID=86415115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111412093.5A Pending CN116166153A (en) | 2021-11-25 | 2021-11-25 | Screen display control method and device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116166153A (en) |
-
2021
- 2021-11-25 CN CN202111412093.5A patent/CN116166153A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11262968B2 (en) | Method and system for wireless screen transmission | |
US9864612B2 (en) | Techniques to customize a user interface for different displays | |
US20090222761A1 (en) | Computer-readable recording medium having display screen setting program recorded thereon, information processing apparatus, and display screen setting method | |
US20210294559A1 (en) | Method and system for remote collaboration | |
US9529755B2 (en) | Apparatus and method of recognizing external device in a communication system | |
US10373282B2 (en) | Method and system for controlling display parameters through multiple pipelines | |
WO2020088118A1 (en) | Electronic apparatus and method employing mobile device and display device to display duplicate screens | |
US20110115688A1 (en) | Display control method according to operation mode of display apparatus and digital device using the same | |
CN113626743A (en) | Method and device for determining target display page, electronic equipment and storage medium | |
US20190179474A1 (en) | Control method, electronic device, and non-transitory computer readable recording medium | |
CN114237419A (en) | Display device and touch event identification method | |
US8204610B2 (en) | Eletronic device, display device, and method of controlling audio/video output of an electronic device | |
WO2017096910A1 (en) | Method and system for adaptively adjusting display scale of office software | |
CN109885270B (en) | Display device control method, display device, and storage medium | |
CN113038052B (en) | Digital video recorder, control method thereof, device storage medium and electronic device | |
CN113253877B (en) | Electronic whiteboard system and control method thereof | |
CN112395297B (en) | Method, device and server for synchronizing work information | |
CN113840174A (en) | Image display method, system and storage medium | |
CN114365504A (en) | Electronic device and control method thereof | |
CN116166153A (en) | Screen display control method and device, electronic equipment and medium | |
CN111427501B (en) | Touch control implementation method and interactive intelligent device | |
CN113626120A (en) | Method and device for determining display page, electronic equipment and storage medium | |
WO2016095515A1 (en) | Display method and display terminal | |
CN112040149A (en) | Input source switching method and device of screen projector, screen projector and storage medium | |
US9489916B2 (en) | Processing method of an external-image device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |