Skip to content

Commit 9fe2cf8

Browse files
committed
ScreenDraw limit last pixels for now
1 parent 62aea01 commit 9fe2cf8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/Protocol/ScreenDraw.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<span>Presets:&nbsp;</span>
1212
<input type="file" @change="importBitmap" accept=".bmp" style="display: none;" ref="fileInput">
13-
<v-btn @click="triggerFileInput" density="compact" title="Import a correctly oriented and sized 250x122 pixel BMP">Import BMP (max 250x122)</v-btn>&nbsp;
13+
<v-btn @click="triggerFileInput" density="compact" title="Import a correctly oriented and sized 249x121 pixel BMP">Import BMP (max 249x121)</v-btn>&nbsp;
1414
<v-btn @click="loadPreset('lightbug2020')" density="compact">Lightbug 20x20</v-btn>&nbsp;
1515
<v-btn @click="loadPreset('lightbug3030')" density="compact">Lightbug 30x30</v-btn>&nbsp;
1616
<v-btn @click="loadPreset('lightbug4040')" density="compact">Lightbug 40x40</v-btn>
@@ -64,9 +64,12 @@ import crc16 from 'crc/crc16xmodem';
6464
6565
export default {
6666
data() {
67-
return {
68-
SCREEN_WIDTH: 250,
69-
SCREEN_HEIGHT: 122,
67+
return {
68+
// Temporary workaround: device currently disallows using the final pixel
69+
// on each axis. Reduce usable screen by 1px on X and Y until device bug
70+
// is fixed. TODO: remove this workaround
71+
SCREEN_WIDTH: 249,
72+
SCREEN_HEIGHT: 121,
7073
PIXEL_SIZE: 3,
7174
brushSize: 5,
7275
isDrawing: false,

0 commit comments

Comments
 (0)