File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1010 </div >
1111 <span >Presets:  ; </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 >  ;
13+ <v-btn @click =" triggerFileInput" density =" compact" title =" Import a correctly oriented and sized 249x121 pixel BMP" >Import BMP (max 249x121 )</v-btn >  ;
1414 <v-btn @click =" loadPreset('lightbug2020')" density =" compact" >Lightbug 20x20</v-btn >  ;
1515 <v-btn @click =" loadPreset('lightbug3030')" density =" compact" >Lightbug 30x30</v-btn >  ;
1616 <v-btn @click =" loadPreset('lightbug4040')" density =" compact" >Lightbug 40x40</v-btn >
@@ -64,9 +64,12 @@ import crc16 from 'crc/crc16xmodem';
6464
6565export 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 ,
You can’t perform that action at this time.
0 commit comments