14 July 2020, 13:11 | #1 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 384
|
Opening a hi-res screen
Hi all. I am trying to open a hi res screen (640 x 256) but it's only opening a low res one. Is there anything I'm missing?
Code:
struct NewScreen NewScreen; NewScreen.LeftEdge = 0; NewScreen.TopEdge = 0; NewScreen.Width = 640; NewScreen.Height = 256; NewScreen.Depth = 4; NewScreen.DetailPen = 0; NewScreen.BlockPen = 1; NewScreen.ViewModes = NULL; NewScreen.Type = CUSTOMSCREEN; NewScreen.Font = &Font; NewScreen.DefaultTitle = "DF0"; NewScreen.Gadgets = NULL; NewScreen.CustomBitMap = NULL; if ((Screen = (struct Screen *)OpenScreen(&NewScreen)) == NULL) return 1; |
14 July 2020, 13:34 | #2 |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
ViewModes hasn't been set. It should be HIRES (from graphics/view.h).
|
14 July 2020, 14:00 | #3 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 384
|
Merci! My Intuition journey only began yesterday. Until now I've only been doing direct hardware programming
|
22 July 2020, 04:43 | #4 |
Registered User
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
|
If you're writing for 3.x and up, best is to use screenmode selector code instead of the old non-monitor-aware fixed screenmodes.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to reset WB screen Res? | stu232 | support.Hardware | 6 | 27 April 2019 18:58 |
Screen Res | Washac | support.OtherUAE | 3 | 17 February 2010 19:44 |
Workbench screen res advice please ??? | synchro | Amiga scene | 10 | 30 August 2004 13:46 |
Tweaking WinUAE screen res | barkingboy | support.WinUAE | 8 | 27 March 2002 16:21 |
WB 3.0: Location of Hi-Res screen definitions? | andreas | New to Emulation or Amiga scene | 4 | 10 March 2002 16:59 |
|
|