January 15, 2021, 05:37:21 PM

Author Topic: [bb] SetRes( ) by thelizardking [ 1+ years ago ]  (Read 436 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] SetRes( ) by thelizardking [ 1+ years ago ]
« on: June 29, 2017, 12:28:38 AM »
Title : SetRes( )
Author : thelizardking
Posted : 1+ years ago

Description : UPDATED

Sets the graphics mode to the current desktop resolution!
BlitzPlus (and modifiable BlitzMax) only.

Yeah, i know its a crappie piece of code, but maybe it'll help some newbie ;) . lol whatever.


Code :
Code: BlitzBasic
  1. SetRes()
  2.  
  3. While Not KeyHit(1)
  4.         Text 0,0,"OK, graphic mode has been set!"
  5.         Text 0,12, GraphicsWidth()+"x"+GraphicsHeight()
  6.         Flip
  7. Wend
  8.  
  9. Function SetRes();This function is for BlitzPlus ONLY - it sets the graphics mode to the current resolution
  10.  
  11. graphics gadgetwidth(desktop()),gadgetheight(desktop());get the width and height of the desktop - the current screen
  12.  
  13. End Function


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal