Aerozik Posted April 24, 2014 Author Share Posted April 24, 2014 Hi ^^I m sorry to ask this kind of questionI try to make a new gui for eclipse worlds engineDx8The game screen is too small if i add a picture box on the right cornerFor exampleSomebody can help me to find where i CAN change the screen sizeI search in the forum but i only findThat i need to search in the renderBut …. Épic failed ^^Please can you help me a little ??Thks a lot Link to comment Share on other sites More sharing options...
BeNjO Posted April 24, 2014 Share Posted April 24, 2014 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 = 800ScreenHeight = 600```you will to then change the rendering position in almost every sub that handles rendering Link to comment Share on other sites More sharing options...
Aerozik Posted April 24, 2014 Author Share Posted April 24, 2014 I use eclipse worlds (seth's engine)With dx8 ….I try to find what you tell meThanksÉdit :Nothing like that .....I don't find sorryAre you sure ?? Link to comment Share on other sites More sharing options...
abhi2011 Posted April 24, 2014 Share Posted April 24, 2014 Find the method that initializes dx8\. Probably called initdx8 if doug's method didn't find yield any results. Than follow what doug said Link to comment Share on other sites More sharing options...
Aerozik Posted April 24, 2014 Author Share Posted April 24, 2014 i try with thatthks … Link to comment Share on other sites More sharing options...
Aerozik Posted April 25, 2014 Author Share Posted April 25, 2014 Sorry butI dont find anythingI try to find mainscreenInitFrmMainEtc… Etc...I never find size to changeSomebody ?? Please Link to comment Share on other sites More sharing options...
abhi2011 Posted April 25, 2014 Share Posted April 25, 2014 Where exactly seen you searching? All of the DX stuff is in modGraphics or something along those lines Link to comment Share on other sites More sharing options...
Aerozik Posted April 25, 2014 Author Share Posted April 25, 2014 hii search everywhereand 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 More sharing options...
abhi2011 Posted April 25, 2014 Share Posted April 25, 2014 Make sure frmMain is the same size. And make sure you compile using vb6\. I don't think you have it cuz no one names a mod like this Attribute VB_Name = "modRendering" unless you're reading the source code on notepad Link to comment Share on other sites More sharing options...
Aerozik Posted April 25, 2014 Author Share Posted April 25, 2014 If course i compile with vb6I just copy the code in notepad to post hereI have the same size un FrmMain for ScaleWidth and ScaleHeightIs 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 More sharing options...
abhi2011 Posted April 25, 2014 Share Posted April 25, 2014 Hmm it seems that picscreen is your primary surface. My badChange picscreen size Link to comment Share on other sites More sharing options...
Aerozik Posted April 25, 2014 Author Share Posted April 25, 2014 so…....i'm the stupid boy of the year ^^i never test to change the picscreen size ...only the frmMain ....i m so sorry and special thanks to you abhi2011 and tehdoug for your help "RESOLVED" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now