- g.setColor(HELIX_COLOUR);\r
- g.fillRoundRect(lastSSX[i], y + 4 + iconOffset,\r
- x - lastSSX[i], 7, 8, 8);\r
+ g.setColor(HELIX_COLOUR);\r
+ if (MAC)\r
+ {\r
+ //Off by 1 offset when drawing rects and ovals\r
+ //to offscreen image on the MAC\r
+ g.fillRoundRect(lastSSX, y + 4 + iconOffset,\r
+ x*av.charWidth - lastSSX, 7, 8, 8);\r
+ break;\r
+ }\r
+\r
+\r
+ int sCol = (lastSSX / av.charWidth) + startRes;\r
+ int x1 = lastSSX;\r
+ int x2 = x;\r
+\r
+ if(sCol==0 ||\r
+ row.annotations[sCol-1]==null ||\r
+ row.annotations[sCol-1].secondaryStructure!='H')\r
+ {\r
+ g.fillArc(lastSSX, y+4+iconOffset, av.charWidth+1, 7, 90,180) ;\r
+ x1 += av.charWidth/2;\r
+ }\r
+\r
+ if(row.annotations[column]==null ||\r
+ row.annotations[column].secondaryStructure!='H')\r
+ {\r
+ g.fillArc(x-av.charWidth, y+4+iconOffset, av.charWidth, 7, 270,180);\r
+ x2 -= av.charWidth/2;\r
+ }\r
+\r
+ g.fillRect(x1, y+4+iconOffset, x2-x1+1, 7);\r