Milestone: IT IS NOW OUTPUTTING TO THE SCREEN!!!!
This commit is contained in:
1 parent
daf89fb720
commit
1e6954930a
2 files changed
+6
-6
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 2.9 KiB |
@@ -105,7 +105,7 @@ func main() {
|
||||
fmt.Println("File Length: ", len(cdg_file_data))
|
||||
|
||||
//loop through some bytes
|
||||
for i := 0; i < 250000; i++ {
|
||||
for i := 0; i < 1000; i++ {
|
||||
decode_packs(cdg_file_data, i)
|
||||
redrawCanvas()
|
||||
}
|
||||
@@ -156,8 +156,8 @@ func putImageData(imageData []byte, x, y, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
|
||||
|
||||
func redrawCanvas() {
|
||||
|
||||
if internal_border_dirty || internal_screen_dirty {
|
||||
// render_screen_to_rgb()
|
||||
if internal_screen_dirty {
|
||||
render_screen_to_rgb()
|
||||
internal_screen_dirty = false
|
||||
clearDirtyBlocks()
|
||||
// internal_rgba_context.putImageData(internal_rgba_imagedata, 0, 0)
|
||||
@@ -176,8 +176,8 @@ func redrawCanvas() {
|
||||
|
||||
for x_blk := 1; x_blk <= 48; x_blk++ {
|
||||
|
||||
if internal_dirty_blocks[blk] != 0 {
|
||||
|
||||
//this dirty logic not quite working!!!
|
||||
//if internal_dirty_blocks[blk] != 0 {
|
||||
render_block_to_rgb(x_blk, y_blk)
|
||||
|
||||
if internal_usedirtyrect {
|
||||
@@ -193,7 +193,7 @@ func redrawCanvas() {
|
||||
}
|
||||
|
||||
internal_dirty_blocks[blk] = 0x00
|
||||
}
|
||||
//}
|
||||
//Note: test the post-increment
|
||||
blk++
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user