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

Dx8 question


Aerozik
 Share

Recommended Posts

Hi ^^

I m sorry to ask this kind of question

I try to make a new gui for eclipse worlds engine

Dx8

The game screen is too small if i add a picture box on the right corner

For example

Somebody can help me to find where i CAN change the screen size

I search in the forum but i only find

That i need to search in the render

But …. Épic failed ^^

Please can you help me a little ??

Thks a lot
Link to comment
Share on other sites

what engine are you using?

```

    frmMain.width = [resolution] * (frmMain.width / frmMain.ScaleWidth)
    frmMain.height = [resolution] * (frmMain.height / frmMain.ScaleHeight)
```
```
Private Function InitD3DDevice(D3DCREATEFLAGS As CONST_D3DCREATEFLAGS) As Boolean

[snip]

ScreenWidth = same as the frmmain.width
ScreenHeight = same as the frmmain.height

```
Example

```
frmMain.width = 800 * (frmMain.width / frmMain.ScaleWidth)
frmMain.height = 600 * (frmMain.height / frmMain.ScaleHeight)

ScreenWidth = 800
ScreenHeight = 600

```

you will to then change the rendering position in almost every sub that handles rendering
Link to comment
Share on other sites

hi

i search everywhere

and more here in modrendering  Attribute VB_Name = "modRendering"

    Direct3D.GetAdapterDisplayMode D3DADAPTER_DEFAULT, Display_Mode 'Use the current display mode that you

                                                                    'are already on. Incase you are confused, I'm

                                                                    'talking about your current screen resolution. ;)

```

  Direct3D_Window.Windowed = True 'The app will be in windowed mode.

    Direct3D_Window.SwapEffect = D3DSWAPEFFECT_COPY 'Refresh when the monitor does.
    Direct3D_Window.BackBufferFormat = Display_Mode.Format 'Sets the format that was retrieved into the backbuffer.
    'Creates the rendering device with some useful info, along with the info
    'we've already setup for Direct3D_Window.
    'Creates the rendering device with some useful info, along with the info
    Direct3D_Window.BackBufferCount = 1 '1 backbuffer only
    Direct3D_Window.BackBufferWidth = 576 ' FrmMain.picScreen.ScaleWidth 'Match the backbuffer width with the display width
    Direct3D_Window.BackBufferHeight = 1171 'frmMain.picScreen.ScaleHeight 'Match the backbuffer height with the display height
    Direct3D_Window.hDeviceWindow = frmMain.picScreen.hWnd 'Use frmMain as the device window.

```
i match the size with the size i need and it doesn't work …..
Link to comment
Share on other sites

If course i compile with vb6

I just copy the code in notepad to post here

I have the same size un FrmMain for ScaleWidth and ScaleHeight

Is that Why i m asking for help ^^

I don't have any error if i compile …..

Just it s not working ...
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...