じ☆ve冰风 发表于 2026-8-1 18:38:53

Force Full Screen with No Black Border

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:

Force the game to run at full screen at game start.

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.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

Script:

Spoiler                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








本贴来自国际rpgmaker官方论坛作者:MeowFace处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/force-full-screen-with-no-black-border.45297/
页: [1]
查看完整版本: Force Full Screen with No Black Border