Picomite/PicoMiteVGA V5.07.05 release candidates


Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1110
Posted: 07:21pm 27 Oct 2022      

With regards something other than black for transparent, I've been looking at the source code and just maybe I see a line of interest:

In the file Draw.c
line 4371:      if(c!=0 || blank==-1)*pp |=c;
the first part, c!=0, appears to be using colour 0 as transparent. Maybe a different value there, or rather, a variable, would have the desired effect. A possible variable is "gui_bcolour", although this needs to be translated from RGB space to a simple colour number.

The gist of this is that the transparent colour could be specified as the current back ground colour.

Just an idea...