Force Full Screen with No Black Border

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
180
First Language
Meowish
Primarily Uses
This is for the request here.

But since it's only a demonstration of how things works. This script only force the game to run in full screen mode with no black borders. No window mode provided. Script writers, feel free to change it as you like.

Features:

[1] Force the game to run at full screen at game start.

[2] Remove all black borders the default full screen has.

How to Use:

Script is plug & play. Paste it below Material and above Main

Compatibility:

Shouldn't be a problem since it's using a new method.

Terms of Use:

Free for use in both commercial and non-commercial projects.

Please credit Vlue as well since i got the idea of resizing window from his window resize script.

Script writers are welcome to modify this script to suits whatever situation you have in mind. Just don't forget the credits. ;)

Script:

Code:
#==============================================================================# ■ Meow Face Force Full Screen#------------------------------------------------------------------------------# Force the game to run in Full Screen (with no black border)#==============================================================================# How to Use:# Plug & Play, Put this script below Material and above Main#==============================================================================MF_GPPSA = Win32API.new('kernel32', 'GetPrivateProfileStringA', 'PPPPLP', 'L')MF_FW = Win32API.new('user32', 'FindWindow', 'pp', 'l')MF_SWL = Win32API.new('user32', 'SetWindowLong', 'iii', 'i')MF_SWP = Win32API.new 'user32', 'SetWindowPos', ['l','i','i','i','i','i','p'], 'i'MF_FWE = Win32API.new 'user32', 'FindWindowEx', ['l','l','p','p'], 'i'MF_GSM = Win32API.new 'user32', 'GetSystemMetrics', ['i'], 'i'MF_TITLE = " " * 256MF_GPPSA.call('Game','Title','',MF_TITLE,256,".\\Game.ini")MF_TITLE.delete!(" ")MF_HWND = MF_FW.call('RGSS Player', MF_TITLE)MF_SWL.call(MF_HWND, -16, 0x14000000)module MEOW_RESIZE  def self.set    width = MF_GSM.call(0)    height = MF_GSM.call(1)    exwin = MF_FWE.call(0,0,"RGSS Player",0)    MF_SWP.call(exwin,0,0,0,width,height,0)  endendMEOW_RESIZE.set
 

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
153
First Language
Italy
Primarily Uses
RM2k
It is possible have a right code?
The spoiler create a wrong text..
 

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
153
First Language
Italy
Primarily Uses
RM2k

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,136
Reaction score
806
First Language
Hungarian
Primarily Uses
RMVXA
There you go:
Code:
#==============================================================================
# ■ Meow Face Force Full Screen
#------------------------------------------------------------------------------
# Force the game to run in Full Screen (with no black border)
#==============================================================================
# How to Use:
# Plug & Play, Put this script below Material and above Main
#==============================================================================

MF_GPPSA = Win32API.new('kernel32', 'GetPrivateProfileStringA', 'PPPPLP', 'L')
MF_FW = Win32API.new('user32', 'FindWindow', 'pp', 'l')
MF_SWL = Win32API.new('user32', 'SetWindowLong', 'iii', 'i')
MF_SWP = Win32API.new('user32', 'SetWindowPos', ['l','i','i','i','i','i','p'], 'i')
MF_FWE = Win32API.new('user32', 'FindWindowEx', ['l','l','p','p'], 'i')
MF_GSM = Win32API.new('user32', 'GetSystemMetrics', ['i'], 'i')

MF_TITLE = " " * 256
MF_GPPSA.call('Game','Title','',MF_TITLE,256,".\\Game.ini")
MF_TITLE.delete!(" ")
MF_HWND = MF_FW.call('RGSS Player', MF_TITLE)
MF_SWL.call(MF_HWND, -16, 0x14000000)

module MEOW_RESIZE 
  def self.set   
    width = MF_GSM.call(0)   
    height = MF_GSM.call(1)   
    exwin = MF_FWE.call(0,0,"RGSS Player",0)   
    MF_SWP.call(exwin,0,0,0,width,height,0) 
  end
end

MEOW_RESIZE.set
 

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
153
First Language
Italy
Primarily Uses
RM2k
Thank you @Sixth but no work in full screen...
The window remain in 544x416 but without window border ^^
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
1,878
Reaction score
410
First Language
English
Primarily Uses
RMVXA
So do you mean it is full screen? Just stretched across? The max resolution for Vx Ace is 640x480 anyways (with scripts).
Or do you mean in stays in a window? And you can see your desktop around it?
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,136
Reaction score
806
First Language
Hungarian
Primarily Uses
RMVXA
I have no idea what should this script do, I just fixed the lines.
From the looks of it, it is like a borderless windowed mode. So, it is still windowed mode, but fully stretched without window borders.

I don't see much point in doing that, especially because the player can still press ALT+F4, and when that happens, the game will switch into true full-screen mode, which won't have any zoom/stretch at all. You could disable ALT+F4 with another script, and it might have a use, but to stretch the game this way (without maintaining the aspect ratio), well, it looks ugly in every sense, in my opinion.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Kingdom Under Fire: The Crusaders is finally being ported to PC. I loved playing that game on the original Xbox.
A friend told me to stop making nomnom or gulping noise when eating or drinking. Plot twist of my life. I thought people can't hear that!
Inside you are two wolves. They take in oxygen while getting rid of the Co2 gas in your body...
Ah wait, sorry. Lungs. Not wolves. that'd be silly. Wolves are huge. You probably couldnt even fit one wolf inside you.
Tag: hack and slash | gameplay: point and click. Me: "How tf two are related to each other?"

Forum statistics

Threads
94,407
Messages
920,733
Members
124,197
Latest member
FJS
Top