English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 14 July 2020, 13:11   #1
Nightfox
Registered User

Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 248
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;
Nightfox is offline  
Old 14 July 2020, 13:34   #2
deimos
Registered User

 
Join Date: Jul 2018
Location: France
Posts: 559
ViewModes hasn't been set. It should be HIRES (from graphics/view.h).
deimos is offline  
Old 14 July 2020, 14:00   #3
Nightfox
Registered User

Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 248
Merci! My Intuition journey only began yesterday. Until now I've only been doing direct hardware programming
Nightfox is offline  
Old 22 July 2020, 04:43   #4
AmigaHope
Registered User
 
Join Date: Sep 2006
Location: New Sandusky
Posts: 746
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.
AmigaHope is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.06376 seconds with 13 queries