On Thursday, 23 November 2017 17:07:37 UTC-7,
[email protected] wrote:
OBNC 0.9.1
I was trying the XYplane module, and getting no output and no errors.
The problem is that OBNC is using double buffering in SDL 1.2 and a call to SDL_Flip(screen) is needed.
The call to Key does this, but seems non intuitive since the purpose of Key is to see if a keyboard key is pressed. After calling Key, the output appeared.
OBNC needs a new procedure in XYplane, such as Show or Flip to display the buffer.
As a minimum you need to add something like the following to the XYplane documentation (taken from the Oxford Oberon Compiler site):
The procedure Key allows simple keyboard interaction. It also handles the events generated by X when the graphics window is uncovered, so as to fill
in the newly-exposed region; this means that a graphics application should
call Key in each iteration of its main loop.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)