Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

(CS:DE) Resizing glitch


tslusny
 Share

Recommended Posts

So this is fix for resizing glitch that occur when you resizing main window.

CLIENT SIDE

**Find:**
```
Public Sub HandleMouseMove(ByVal x As Long, ByVal y As Long, ByVal Button As Long)
```
**Here find:**
```
GlobalX = x
GlobalY = y
```
**Replace it with this:**

```
GlobalX = (12090 / frmMain.width) * x
GlobalY = (9420 / frmMain.height) * y
```
**Optional if you want to have it in Pixels then replace this:**
```
GlobalX = x
GlobalY = y
```
**With this:**
```
GlobalX = (800 / frmMain.scalewidth) * x
GlobalY = (600 / frmMain.scaleheight) * y
```
Link to comment
Share on other sites

@jcsnider:

> Client Source in Sub HandleMouseMove..
>
> Personally though, it does the same thing but I have used…
> ```
> GlobalX = (800 / frmMain.scalewidth) * x
> GlobalY = (600 / frmMain.scaleheight) * y
> ```
> Yea :P
>
> Keeping it in Pixels keeps it simple :P
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...