Project

General

Profile

Actions

Bug #622

open

hrev/vrev block commands

Added by malcolm harvey over 3 years ago. Updated about 3 years ago.

Status:
Feedback
Priority:
Normal
Target version:
-
Start date:
01/20/2021
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

Currently if you try and use the cmds hrev/vrev block num it comes up with syntax error.
Hrev Block number or Vrev Block number

Actions #1

Updated by malcolm harvey over 3 years ago

malcolm harvey wrote:

Currently if you try and use the cmds hrev/vrev block num it comes up with syntax error.
Hrev Block number or Vrev Block number

Should work or get error on any screen im guessing..
screen 2
Get Block 1,320,448,160,64
Hrev Block 1
Actions #2

Updated by Francois Lionet over 3 years ago

  • Status changed from New to Resolved
  • Assignee changed from AOZ Studio Team to Francois Lionet
  • Target version set to Beta 3

Fixed!

Actions #3

Updated by Brian Flanagan about 3 years ago

  • Status changed from Resolved to Feedback
  • Target version deleted (Beta 3)
  • Estimated time set to 1:00 h
  • Affected version changed from Beta RC2 to 1.0.0 (B8) u15

The Syntax Error has been corrected, however Hrev Block and Vrev Block still have a problem.
They only work the first time called.

Calling Hrev Block, Then Put Block, then calling HrevBlock again should restore the original block in memory, but it doesn't. The same goes for Vrev Block. It works the first time, but doing it again does not restore the original block.

Here's an example:

#manifest: "amiga"
Curs Off : Flash Off
Box 0,0 To Screen Width-1,Screen Height-1
Draw 0,0 To Screen Width-1,Screen Height-1
Get Block 1,0,0,50,50
' This works
Hrev Block 1
Put Block 1,0,0
' This works
Vrev Block 1
Put Block 1,50,50
' This does NOT work (should flip the altered block horizontally)
Hrev Block 1
Put Block 1,100,100
' This does NOT work (should flip the altered block vertically)
' Should be back to original state after this Vrev
Vrev Block 1
Put Block 1,150,150
Actions

Also available in: Atom PDF