Neil.e clear_screen() fix

new topic     » topic index » view thread      » older message » newer message

Fiestaclear_screen() would fail for text modes.  This fixes it

procedure oldclear_screen()
  clear_screen()
end procedure

global procedure clear_screen()
--> Clears the screen to the color set by bg_color and moves cursor to (0,0)
  if mode_type then
    text_x = 0
    text_y = 0
    display_image({0,0}, repeat(repeat(back_color, SCREEN_W), SCREEN_H))
  else
    oldclear_screen()
  end if
end procedure


        Lucius L. Hilley III
.     __         __  __     ______     ______     __  __    _____
.    /\ \       /\ \/\ \   /\     \   /\     \   /\ \/\ \  /\    \
.   /  \_\     /  \_\ \_\ /  \_____\  \ \_____\ /  \_\ \_\/  \____\
.  /   / /    /   / / / //   / ____/  /\_   __//   / / / /\  /  __ \
. /   / /    /   / / / //   / /    __/   / /  /   / / / /\_\/  /_ \/
./   / /\   /   / /\/ //   / /\   /\ \  / /  /   / /\/ /\ \ \__  \
.\  / /__\  \  / /_/ / \  / /__\  \ \_\/ /_\ \  / /_/ /  \/\_\/  /
. \/_____/   \/_____/   \/_____/   \/______/  \/_____/    \_____/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu