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,875
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

tomorrow I'ma go on a cruise for the first time ever... lets hope I'll survive the experience!
Omg! 8 years in this forum :o
Ksi
Streaming the last of the RMN Valentiny event games so feel free to drop on by and watch me cry (whether that's from laughter, rage or sheer pain, who knows?)
Today I went to sleep without setting an alarm, so I could sleep more than 2 hours. I woke up after 2 hours.
Sigh :( ... displaying numbers representing the stats of the PCs for a custom menu in rm2k3 is haaaaaaaarrrd!!! DX

Forum statistics

Threads
94,306
Messages
919,808
Members
124,054
Latest member
stevechtrs
Top