@@ -44,8 +44,8 @@ PRI loadBitmap(pBitmapFile) | nPanelCol, nPanelRow, blue, green, red, haveError,
44
44
abort
45
45
46
46
' fill screen buffer
47
- repeat nPanelRow from 0 to screen.MAX_PHYSICAL_ROWS - 1
48
- repeat nPanelCol from 0 to screen.MAX_PHYSICAL_COLUMNS - 1
47
+ repeat nPanelRow from 0 to screen.MAX_DISPLAY_ROWS - 1
48
+ repeat nPanelCol from 0 to screen.MAX_DISPLAY_COLUMNS - 1
49
49
'debug("loadBitmap() - RC=(", udec_(nPanelRow), ", ", udec_(nPanelCol), ")")
50
50
showDebug := FALSE
51
51
if isDebugLocn(nPanelRow, nPanelCol)
@@ -101,7 +101,7 @@ PRI validateBmpFile(pBmpFileImage) : bValidStatus | pFileHeader, i, iStart, iEnd
101
101
' XYZZYpnl debug(" - Img-start @0x", uhex_(iStart))
102
102
' XYZZYpnl debug(" - Img-end @0x", uhex_(iEnd))
103
103
104
- if biWidth <> screen.MAX_PHYSICAL_COLUMNS or biHeight <> screen.MAX_PHYSICAL_ROWS
104
+ if biWidth <> screen.MAX_DISPLAY_COLUMNS or biHeight <> screen.MAX_DISPLAY_ROWS
105
105
' XYZZYpnl debug(" !! invalid BMP size! [NOT 64x32]")
106
106
bValidStatus := FALSE
107
107
@@ -123,11 +123,11 @@ PRI validateBmpFile(pBmpFileImage) : bValidStatus | pFileHeader, i, iStart, iEnd
123
123
'screen.dbgMemDump(@fileEndMsg, iEnd-32-1, 32)
124
124
125
125
PRI get24BitBMPColorForRC(nRow, nColumn) : red, green, blue | pixColorAddr
126
- if(nRow > screen.MAX_PHYSICAL_ROWS - 1)
127
- debug("- ERROR bad nRow value [", udec_(nRow), " > ", udec_(screen.MAX_PHYSICAL_ROWS - 1), "]")
126
+ if(nRow > screen.MAX_DISPLAY_ROWS - 1)
127
+ debug("- ERROR bad nRow value [", udec_(nRow), " > ", udec_(screen.MAX_DISPLAY_ROWS - 1), "]")
128
128
129
- if(nColumn > screen.MAX_PHYSICAL_COLUMNS - 1)
130
- debug("- ERROR bad nColumn value [", udec_(nColumn), " > ", udec_(screen.MAX_PHYSICAL_COLUMNS - 1), "]")
129
+ if(nColumn > screen.MAX_DISPLAY_COLUMNS - 1)
130
+ debug("- ERROR bad nColumn value [", udec_(nColumn), " > ", udec_(screen.MAX_DISPLAY_COLUMNS - 1), "]")
131
131
132
132
pixColorAddr := getPixelAddressForBMPRowColumn(nRow, nColumn)
133
133
' our intername .bmp file byte order is BGR!
@@ -137,7 +137,7 @@ PRI get24BitBMPColorForRC(nRow, nColumn) : red, green, blue | pixColorAddr
137
137
138
138
PRI getPixelAddressForBMPRowColumn(nRow, nColumn) : pixColorAddr | rowIndex, columnIndex, nOffset, fileBitsBase, showDebug
139
139
' Row is inverted in .BMP file...
140
- rowIndex := (screen.MAX_PHYSICAL_ROWS - 1) - nRow
140
+ rowIndex := (screen.MAX_DISPLAY_ROWS - 1) - nRow
141
141
142
142
' Column is normal in file...
143
143
columnIndex := nColumn
@@ -148,7 +148,7 @@ PRI getPixelAddressForBMPRowColumn(nRow, nColumn) : pixColorAddr | rowIndex, col
148
148
showDebug := TRUE ' FALSE ' turn off debug
149
149
150
150
' now offset is simple (just multiply by 3! [bytes of color])
151
- nOffset := ((rowIndex * screen.MAX_PHYSICAL_COLUMNS ) + columnIndex) * screen.DISPLAY_BYTES_PER_COLOR
151
+ nOffset := ((rowIndex * screen.MAX_DISPLAY_COLUMNS ) + columnIndex) * screen.DISPLAY_BYTES_PER_COLOR
152
152
153
153
fileBitsBase := @byte[pBitmapFileInMemory][bfOffBits] ' get base of image in file (skip header)
154
154
pixColorAddr := @byte[fileBitsBase][nOffset] ' add in offset to 24-bit color
0 commit comments