You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
BOOKMARK THIS PAGE !
https://www.exxosforum.co.uk:8085/IP_CHECK/
You can unban yourself if needed. It also sends me reports to investigate the ban.
DO NOT USE MOBILE / CGNAT DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time, it is unfortunately not possible to whitelist users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

Clear screen to the green background ?

News,announcements,programming,fixes,game patches & discussions.
User avatar
exxos
Site Admin
Site Admin
Posts: 28130
Joined: 16 Aug 2017 23:19
Location: UK

Clear screen to the green background ?

Post by exxos »

I can use v_clrwk to clear it, but it turns the screen white. Is there a way to restore the green background GEM colour ?

This came about because I cheated and just fill the screen with a green bar, but now I see on EMUTOS, seems to have a hatched pattern so I end up with two different green backgrounds :roll:

As this appears when the window is open and close, Maybe I am not setting something like the clipping rectangle or something causing the problem ? I don't seem to have this problem in TOS though anyway.

IMG_5031.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
mfro
Posts: 124
Joined: 13 Dec 2018 07:32

Re: Clear screen to the green background ?

Post by mfro »

exxos wrote: 22 Apr 2020 21:29 I can use v_clrwk to clear it, but it turns the screen white. Is there a way to restore the green background GEM colour ?
This happens when you don't obey the stacked nature of GEM. If you use the "top of stack" AES (as you apparently do with the dialog box) you are supposed to use the VDI only inside the work area of AES windows (everything outside is supposed to be owned by the AES, otherwise you pull the carpet below the AES' feet).

Either send a WM_REDRAW message to the desktop (AES window handle 0) to redraw the background or register your own desktop with wind_set(WF_DESKTOP, ...) (after that you need to handle redraw messages to the desktop window yourself).
And remember: Beethoven wrote his first symphony in C.
User avatar
exxos
Site Admin
Site Admin
Posts: 28130
Joined: 16 Aug 2017 23:19
Location: UK

Re: Clear screen to the green background ?

Post by exxos »

mfro wrote: 23 Apr 2020 19:51 or register your own desktop with wind_set(WF_DESKTOP, ...)
Is that right as it doesn't seem to be listed ? http://toshyp.atari.org/en/008009.html#wind_set
User avatar
thorsten.otto
Posts: 148
Joined: 04 Nov 2019 02:20

Re: Clear screen to the green background ?

Post by thorsten.otto »

It is WF_NEWDESK, not WF_DESKTOP.
after that you need to handle redraw messages to the desktop window yourself
Erm, no. The AES still does that for you.

PS: i just wonder how long it takes until that old links disappear. The current version of tos.hyp is maintained on github, for several years already.
User avatar
mfro
Posts: 124
Joined: 13 Dec 2018 07:32

Re: Clear screen to the green background ?

Post by mfro »

thorsten.otto wrote: 24 Apr 2020 14:44 It is WF_NEWDESK, not WF_DESKTOP.
Good, old - and buggy - Atari Compendium. Right you are, it's WF_NEWDESK. Thanks.
And remember: Beethoven wrote his first symphony in C.
User avatar
exxos
Site Admin
Site Admin
Posts: 28130
Joined: 16 Aug 2017 23:19
Location: UK

Re: Clear screen to the green background ?

Post by exxos »

thorsten.otto wrote: 24 Apr 2020 14:44 PS: i just wonder how long it takes until that old links disappear. The current version of tos.hyp is maintained on github, for several years already.
I always google the things I want.. github pages never show up.
User avatar
exxos
Site Admin
Site Admin
Posts: 28130
Joined: 16 Aug 2017 23:19
Location: UK

Re: Clear screen to the green background ?

Post by exxos »

I am not really getting this.. I just created a standard window for now... Though when the dialogue boxes open and close, it is leaving a copy of itself on the screen.. So the background is not refreshing at all now :roll:
User avatar
thorsten.otto
Posts: 148
Joined: 04 Nov 2019 02:20

Re: Clear screen to the green background ?

Post by thorsten.otto »

- do you call form_dial(FMD_FINISH,...) when you are done with the dialog?
- do you handle WM_REDRAW messages for your window?
User avatar
ari.tao
Posts: 45
Joined: 18 Sep 2018 08:50

Re: Clear screen to the green background ?

Post by ari.tao »

Sic!
To handle the AES update semaphores correctly is essential when calling a dialogue.
Falcon, TT & some more
User avatar
exxos
Site Admin
Site Admin
Posts: 28130
Joined: 16 Aug 2017 23:19
Location: UK

Re: Clear screen to the green background ?

Post by exxos »

thorsten.otto wrote: 25 Apr 2020 07:01 - do you call form_dial(FMD_FINISH,...) when you are done with the dialog?
- do you handle WM_REDRAW messages for your window?
FMD_FINISH is half the problem. When I draw the menu box, go into a second menu and quit back to main menu I get a copy of the second menu left on the screen as that menu is larger than the first. Now FMD_FINISH clears that issue by restoring the desktop background. So in that respect it all works fine..BUT..

If I fill the screen with red for example, FMD_FINISH restores again the desktop background so I end up with green blocks around my red background. I guess it would be better to post a video about this...

WM_REDRAW I'm not using as I don't think it would help. The workaround is to just draw a red background full screen after FMD_FINISH, But that doesn't seem a good solution to me, it is literally a work around.

Return to “SOFTWARE PROGRAMMING & DISCUSSION”

Who is online

Users browsing this forum: CCBot and 1 guest