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

Full screen /w Same quality


lexkymbeth
 Share

Recommended Posts

**This is only client!**

Since **785 (EO's Width)** is not divisible by any even number you must change the size of frmMain (800x600 is a good size) This will not be covered in this tutorial

Derived from [Here](http://forums.codeguru.com/showthread.php?497248-VB6-How-Do-I-Change-The-Screen-Resolution-Only-For-My-Program), changed for easy implementation.

**NOTE:** You may want to add an exit button to **frmMain** that calls **Unload Me** That is up to you to create

Add the file below to your project.

**frmMain**, under **Private PresentY As Long** add.

```

Public OldX As Long
Public OldY As Long

```
**This next steps depends on what engine you use**, you need to fine the part where your engine starts and exits

For EO 3 (Maybe others only tryed it with EO 3 so far, and with just an empty project)

**modGeneral**, **GameInit**, under **frmMain.Show** add. Replace Width and Height with your current **frmMain's** res EO uses **785x****594 **THIS IS NOT DIVISIBLE
by 12 you MUST change frmMain's size to be divisible by 12
(Current bit per pix)

```

frmMain.OldX = Screen.Width / Screen.TwipsPerPixelX
frmMain.OldY = Screen.Height / Screen.TwipsPerPixelY
ChangeResolution ReplaceWithWidth, ReplaceWithHeight

frmMain.WindowState = vbMaximized ' It fixes positioning on some monitors
```

**modGeneral**, **logoutGame**, under **Dim buffer As clsBuffer, i As Long** (For neatness, it can (Maybe) be placed anywhere) add.

```
ChangeResolution frmMain.OldX, frmMain.OldY

```

Last, open **frmMain's** visual editor change **frmMain's BorderStyle** to **none**
Link to comment
Share on other sites

  • 2 weeks later...
> Screen shot.
>
> ![](http://www.eclipseorigins.com/community/public/style_images/Eclipse_XGame_Images/attachicon.gif)[fullscreen.png](http://www.eclipseorigins.com/community/index.php?app=core&module=attach§ion=attach&attach_rel_module=post&attach_id=1232)

tnx for using my custom engine xD
Link to comment
Share on other sites

  • 3 months later...
  • 3 months later...
> Okay, i know i'm a little on the late end of things, but i get a "variable not defined" on replacewithwidth. I'm using a vanilla copy of eo3

"Replace Width and Height with your current **frmMain's** res EO uses **785x****594 **THIS IS NOT DIVISIBLE
by 12 you MUST change frmMain's size to be divisible by 12
"

ReplacewithWidth and ReplaceWithHeight are not actual variables, you have to set their values.
Link to comment
Share on other sites

> "Replace Width and Height with your current **frmMain's** res EO uses **785x****594 **THIS IS NOT DIVISIBLE
> by 12 you MUST change frmMain's size to be divisible by 12
> "
>
>  
>
> ReplacewithWidth and ReplaceWithHeight are not actual variables, you have to set their values.

Is there any way to set that to be the users screen resolution?
Link to comment
Share on other sites

I posted a method to do this in Eclipse Origins 3.0 here

It allows full screen gameplay with a sizable window, so as you size the window, it'll size your display accordingly!

[http://www.eclipseorigins.com/community/index.php?/topic/135796-robs-feature-request-thread/?p=926234](http://www.eclipseorigins.com/community/index.php?/topic/135796-robs-feature-request-thread/?p=926234)
Link to comment
Share on other sites

  • 1 month later...

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...