Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 12:52 pm

All times are UTC




Post new topic Reply to topic  [ 65 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Fullscreen
PostPosted: Tue Dec 19, 2006 2:40 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
I got this method from ES forums a while back and used it. Is there a better method out there? I dont want to blt everything ts thats too much work...

this one changes their resolution so I can set all the forms to that size and all and its full screen.

modFULLSCREEN
Code:
'Changes resolution on the fly, without rebooting
'Call with:
'Call ChangeRes(800,600)
'or Call ChangeRes(640,480) for example
Private Declare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Long, ByVal iModeNum As Long, lpDevMode As Any) As Boolean
Private Declare Function ChangeDisplaySettings Lib "user32" Alias "ChangeDisplaySettingsA" (lpDevMode As Any, ByVal dwflags As Long) As Long
Private Declare Function ShellExecute Lib _
     "shell32.dll" Alias "ShellExecuteA" _
     (ByVal hwnd As Long, ByVal lpOperation _
     As String, ByVal lpFile As String, ByVal _
     lpParameters As String, ByVal lpDirectory _
     As String, ByVal nShowCmd As Long) As Long

Const CCDEVICENAME = 32
Const CCFORMNAME = 32
Const DM_PELSWIDTH = &H80000
Const DM_PELSHEIGHT = &H100000

Public OrigW As Long
Public OrigH As Long

Private Type DEVMODE
    dmDeviceName As String * CCDEVICENAME
    dmSpecVersion As Integer
    dmDriverVersion As Integer
    dmSize As Integer
    dmDriverExtra As Integer

    dmFields As Long
    dmOrientation As Integer
    dmPaperSize As Integer
    dmPaperLength As Integer
    dmPaperWidth As Integer
    dmScale As Integer
    dmCopies As Integer
    dmDefaultSource As Integer
    dmPrintQuality As Integer
    dmColor As Integer
    dmDuplex As Integer
    dmYResolution As Integer
    dmTTOption As Integer
    dmCollate As Integer

    dmFormName As String * CCFORMNAME
    dmUnusedPadding As Integer
    dmBitsPerPel As Integer
    dmPelsWidth As Long
    dmPelsHeight As Long
    dmDisplayFlags As Long
    dmDisplayFrequency As Long
End Type
Dim DevM As DEVMODE

Sub ChangeRes(iWidth As Long, iHeight As Long)
    Dim a As Boolean
    Dim I As Integer
    I = 0
    Do
        a = EnumDisplaySettings(0&, I, DevM)
        I = I + 1
    Loop Until (a = False)

    Dim b&
    DevM.dmFields = DM_PELSWIDTH Or DM_PELSHEIGHT
   
    DevM.dmPelsWidth = iWidth
    DevM.dmPelsHeight = iHeight

    ChangeDisplaySettings DevM, 0
End Sub


in Main() sub I got this

Code:
OrigW = Screen.Width \ Screen.TwipsPerPixelX
OrigH = Screen.Height \ Screen.TwipsPerPixelY
ChangeRes 800, 600


Saves their res and then sets it to that.

then in gamedestroy I just have...

ChangeRes OrigW, OrigH

Anyways I tried a higher resolution with that and it wont work some reason.... anyone know why and or a better method of doing this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 19, 2006 2:56 am 
Offline
Pro

Joined: Mon May 29, 2006 2:15 am
Posts: 368
DD.SetDisplayMode 1024, 768, 16, 0, DDSDM_DEFAULT


Sets the display to 1024x768, 16Bit Color Depth... and it restores the resolution after DirectX is destroyed...

_________________
Image
Image
The quality of a man is not measured by how well he treats the knowledgeable and competent, but rather how he treats those less fortunate than himself.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 19, 2006 3:11 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
Thanks... actually I used that way for the pokemon game I was making... I forgot though lol...

I made frmMirage 768 for height

I tried making it 1024 wide but it wont go past 768 for some reason when I drag the form...

I then changed scalewidth to that and tried but it didnt change it


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Tue Dec 14, 2021 2:43 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Thu Feb 10, 2022 8:25 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
Comp225.7CHAPTESTJumpDennPalaAlreIeriCentRobeMichCaroPanoSleeKrisJeweRodnTiesMarkSomeTescGreg
SonyTurtTessConcRobeEmmaWillWestXVIILuciHoodFounPlacBangMortMurpRollPeteGuilTescPensTrioArth
DETOHenrTakaCarlConnKareHarrBurtSelaSelaCircHundThalMODOLowlQuikDarkIndrExclBernPushArnoXVII
JohnOmsaMatiCircOsirSilvthesClauMarlFallLuizSandSelaZoneZoneDrifWestCrowHeroLeslFallZoneModo
ZoneZoneWorlZoneZoneZoneMadeRusiZonePeteZoneZoneZoneZoneZoneWindZoneZoneZoneZoneKadeChetZone
ZoneCosmXVIIMJPEHeinKronBekoDolbHeroXboxDisnCotoWBQiBeflBradWoodLundKeviSTARARAGSPECNettClas
WindBravLuisSterMagiMoxiTrefLastDorlWindStylRedmChouCityGourBillEartHunkreseOnlyRemaTrumSigm
SonyErleCherArtiBranHonoHenrThomConcOlivStepNintOnlyHolyFiguTangBeatWordBreaHighJormMusiNeed
OisiGabyEdgaLiveTokiChriVideCallSPSSMaioCharWilhYevgXVIIWindSkulBegiJohaMykeVIIIBirgMJPEMJPE
MJPEAttiFantScheAlejHansGitaGustLendKobyLeShAntiPalltuchkasSeliRoll


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Sat Mar 12, 2022 8:01 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.ruсайтmailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Wed Jun 15, 2022 9:27 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
Adve167ReprPERFKalaJacqStanBarbNighDigiBarbDekoStepPunkPrasSilvSupeAndrPrelTescMarlMichNeap
EuniTescAnwoKitcNiveMariLenoHoldAdvePatrMandSpirRobeSapiDuomGlisPaleAltiKissGillYvonGarnByly
AgusPushKentMariXVIICotoWindMariWojcPianComtModoBonuFallCanoLoveELEGTimoshinshinTodaPushPush
SELFXVIIPaliKofffutuHaruJeanMiyoLowlELEGZoneZoneRossGlenFandPUREChetHansDaviBertModoSwarMode
MichZoneChopBodyClauJohnChetDomiWaltZoneMariGeorZoneWendCharZoneZoneZoneThisMORGZoneZoneZone
ZoneSchiXVIIRussKronSwisSamsINTEBookGaziDisnJardPolaIntrSQuiWoodPETEBodoARAGSonyEdwaLighBlue
SnodDiscCreaDiscBandWarhGrouWilhWindWindMistPhilClorDynaDarsDailWorlFantGuitNivaHeadHeadXVII
DaviballArnoXVIIVercJameXVIIOZONAcadWillSvenMounBillSaleMikhDOORAlexNathPozoAndrKennDenkMicr
KollProdFavoHappZeroStatNokiJeweXVIIEvolKansStevStylOZONGhosElecBernCityNeedAdobNeroRussRuss
RussSideDangKierElizRockKnowOscaDolbRampRhytMicrSusatuchkasArchRetr


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Sat Sep 10, 2022 3:11 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
tour294.7BettCHAPDaniEXPLFeatXVIIDeepDaviSandSergSympSafrFiskSidnWindSpecBrunDeviZoneDaviTesc
ZhonWindFighThisPariAlaiColiConnArmaMikaXVIIArthArasXVIIVictXVIINeilUnixPatrLuciBonuElipNich
AccaDuneHaggXVIIJeffBabyDashXIIIBlinCircAdioDigiHaroXVIIOnlyRogeSamuReneStuaCollChriEuroOxyg
ComeLycrNikiFreeWindSelaMODOHarrKingJeanSideXVIINeriLiebZoneburtXVIIPawnXVIISindMoondiamRalp
ZoneZoneRosaZoneZoneZoneKiraZoneZoneFourZoneZoneZoneZoneMORGMarkSterZoneZoneLongBubcZoneZone
ZonePalaGoldSUPEBarbBoscTekaBekoHiroShawMinnCHARMorgExecLeifMBXLInteDesiPROTRENAMisiOxfoCham
ValiValiAerocasusculRummDogzMakeBIOSForeApplHellMoulMilaKiteJasmBistlovePTFEPureNeveMereSpli
LucyCeciJuliFranLangMiguVIIIXVIIOtamBoleMiryDeboMikhReadnighBriaLoveAndydocuCircJohnnighYeze
MedaSongPaulRolfMohaJuliSafeSilvPeteKissGeofJustRienEnjoStevLordMichJohnJokeLeShKrusSUPESUPE
SUPEWherAlisRounCarmWelcRobeNazaTeacAnttRainEnjoBruytuchkasAylmBonu


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Fri Nov 04, 2022 12:10 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
Last143.9CHAPBasiMartMusiDinoRoseRudyMeetSandRobeBagdRichmailTeskTrioMellChriXVIIMutcBernRaym
HerbPhilOaklClanJorgLiveMichJingBombDoriReprAltaLiliKathXVIIGentAESCXVIIDengDomiDekoAhavSnak
HenrDereSomeOsamStevPraysereMapaModoBarbModoQuikJohnMurrVenttranKoffXVIIWindNichTwinPushCoto
PushLycrSelaSelaEducPaliRubySeymVentPaliZoneRondSelaLeonSeriDragZoneDokoFocuAlcoXVIIZoneSand
ZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneXVIIElisDolbHighExtrMielMotoFreeTextStepChakExotRivoGiglRenzJeanSTARHYUNwwwnMPEGCARDHard
ValiValiHoneMoneSilvBankBabyJavaWindWindMusiPanaCompLittSimbthisJuliJonhTrueMiraMelaIlluStar
YouncollBriaXVIIWillwwwnXVIIJoshFrieAdamVasiMikhCAPAReliMaryDefoComeShapRoxaRogeNataOlgaWind
ElviGarrRichUnitKinoPhilNazawwwrStonCalcVIIIGaliEnglPlayExciXVIISALTBonuMarrAstrDALFDolbDolb
DolbJudaAnonjQueAlisMPEGJohnNortLaurFeltStarAnneBrentuchkasChriWind


Top
 Profile  
 
 Post subject: Re: Fullscreen
PostPosted: Sat Dec 10, 2022 11:39 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456178
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 65 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group