Skip to content

Commit

Permalink
Return []byte from func Memory.Data()
Browse files Browse the repository at this point in the history
  • Loading branch information
atomsymbol-notifications committed Feb 25, 2013
1 parent 6b0b6ea commit 263894d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/spectrum/memory.go
Expand Up @@ -108,8 +108,8 @@ func (memory *Memory) Write(address uint16, value byte, protectROM bool) {
}
}

func (memory *Memory) Data() *[0x10000]byte {
return &memory.data
func (memory *Memory) Data() []byte {
return memory.data[:]
}

// Number of T-states to delay, for each possible T-state within a frame.
Expand Down
2 changes: 1 addition & 1 deletion src/spectrum/ula.go
Expand Up @@ -187,7 +187,7 @@ func (ula *ULA) prepare(display *DisplayInfo) *DisplayData {
}

// Fill screen.bitmap & screen.attr, but only the dirty regions.
var memory_data *[0x10000]byte = ula.memory.Data()
var memory_data []byte = ula.memory.Data()
ula_bitmap := &ula.bitmap
ula_attr := &ula.attr
screen_dirty := &screen.Dirty
Expand Down

0 comments on commit 263894d

Please sign in to comment.