Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Issue Printing to another screen  (Read 2551 times)

0 Members and 1 Guest are viewing this topic.

scharmers

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Generic Amiga User
Issue Printing to another screen
« on: September 19, 2017, 08:01:30 PM »

I'm having color problems when printing to another screen.
I'm set up as follows:
One "background" screen (screen 0) that is used to display graphics.  It's 320,200,32 color
One "text box" screen (screen 0) that is used to display text.  It's 640,200,8 color.  I SCREEN DISPLAY the text box so that it occupies the bottom 1/3 of the monitor view.
I declared a good DEFAULT PALETTE before opening the screens so that colors 0-7 are fixed to what I want them.
The problem is this: whenever I PRINT to screen 1, the text printed ignores the INK color register I specify and always prints in black.
I've verified the color register values I set are global and picked up in the procedure where I do the printing.
The text box screen can be "hidden" by scrolling it down out of view using a SCREEN DISPLAY loop, and then reshown by scrolling it back up.
Any reason why text color is messed up in screen 1?

Thanks
Logged

scharmers

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Generic Amiga User
Re: Issue Printing to another screen
« Reply #1 on: September 19, 2017, 10:40:40 PM »

LOL there's apparently a difference between PEN and INK.

Logged

Sidewinder

  • Forum Mod
  • A600
  • *****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • http://www.liquido2.com/
Re: Issue Printing to another screen
« Reply #2 on: September 20, 2017, 04:33:47 PM »

Yes, there is a difference between PEN and INK.   :)

You can use the PEN and PAPER commands to set the foreground and background for text that is output with the PRINT command.  Otherwise, you can use the INK command to set the color for text that is output with the TEXT command.  The TEXT command is a graphics command which is why it uses the INK color.  It offers a way to print text anywhere on the screen, unlike PRINT which is limited to rows and columns.
Logged
- Sidewinder
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022