Project

General

Profile

Bug #746

When using a transparent background, text does not redraw properly when over-written.

Added by Brian Flanagan about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/01/2021
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

Example:

Screen Open 0,640,480,32,Lowres
Palette 0,$FFFFFF,$FF0000
Flash Off : Curs Off : Cls 2
Pen 1 : Paper 2 : Locate 0,4
Print "+ for increase"
Print "- for decarease"
Paper 0

Screen Open 1,640,480,32,Lowres
Flash Off : Curs Off : Palette 0,$FFFFFF,$000001
Set Transparent 0 : Cls 0 : Pen 2 : Paper 0
X=0

Do
  Locate 1,1 : Print Using "####";X
  IK$=Inkey$
  If IK$="+" Then X=X+10
  If IK$="-" Then If X >=10 Then X=X-10
  Wait Vbl
Loop

In standard writing mode the text background should be overwritten with the paper color.
In this case, that color is 0 (transparent), but it isn't working.

Also available in: Atom PDF