Auflösungseinstellungen, -auswahl

Übersicht BlitzBasic Codearchiv

Neue Antwort erstellen

AMY

Betreff: Auflösungseinstellungen, -auswahl

BeitragSo, Okt 09, 2005 14:18
Antworten mit Zitat
Benutzer-Profile anzeigen
Habe hier mal ein bischen mit den Graphic Modis rumgespielt. Vielleicht sucht ja jemand soetwas:



BlitzBasic: [AUSKLAPPEN]
;For Choosing the highest avail GraphicsMode

intModes=CountGfxModes()
Graphics(GfxModeWidth(intModes-1),GfxModeHeight(intModes-1),GfxModeDepth(intModes-1),1)
Print \"FullScreenMode set to:\"+ GfxModeWidth(intModes-1)+\"x\"+GfxModeHeight(intModes-1)+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key for the Max windowed Mode\"
WaitKey
;Max Windowed Mode
x=GfxModeWidth(intModes-1)-5
y=GfxModeHeight(intModes-1)-25
Graphics(x,y,GfxModeDepth(intModes-1),2)
Print \"Max. WindowedMode set to:\"+x+\"x\"+y+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key for the Big windowed mode\"
WaitKey
;Big Windowed Mode
x=((GfxModeWidth(intModes-1)/6)*5)
y=((GfxModeHeight(intModes-1)/6)*5)
Graphics(x,y,GfxModeDepth(intModes-1),2)
Print \"Big WindowedMode set to:\"+x+\"x\"+y+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key for the medium windowed mode\"
WaitKey
;Medium Windowed Mode
x=GfxModeWidth (intModes-1)-(GfxModeWidth (intModes-1)/3)
y=GfxModeHeight(intModes-1)-(GfxModeHeight(intModes-1)/3)
Graphics(x,y,GfxModeDepth(intModes-1),2)
Print \"Medium WindowedMode set to:\"+x+\"x\"+y+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key for the small-medium windowed mode\"
WaitKey
;Small-Medium Windowed Mode
x=GfxModeWidth (intModes-1)-(GfxModeWidth (intModes-1)/2)
y=GfxModeHeight(intModes-1)-(GfxModeHeight(intModes-1)/2)
Graphics(x,y,GfxModeDepth(intModes-1),2)
Print \"Small-Medium WindowedMode set to:\"+x+\"x\"+y+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key for the small windowed mode\"
WaitKey
;Small Windowed Mode
x=((GfxModeWidth (intModes-1)/4)*1.5)
y=((GfxModeHeight(intModes-1)/4)*1.5)
Graphics(x,y,GfxModeDepth(intModes-1),2)
Print \"Small WindowedMode set to:\"+x+\"x\"+y+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key for the very small windowed mode\"
WaitKey
;Very Small Windowed Mode
x=(GfxModeWidth (intModes-1)/4)
y=(GfxModeHeight (intModes-1)/4)
Graphics(x,y,GfxModeDepth(intModes-1),2)
Print \"Very Small WindowedMode set to:\"+x+\"x\"+y+\"x\"+GfxModeDepth(intModes-1)
Print \"Done\"
Print \"Please press a key to End\"
[/syntax]

Neue Antwort erstellen


Übersicht BlitzBasic Codearchiv

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group