+ int lastcol=-1, lastrow=-1;\r
+ int color = Color.white.getRGB();\r
+ int row, col;\r
+ for (row = 0; row < sequencesHeight; row++)\r
+ {\r
+ for (col = 0; col < width; col++)\r
+ {\r
+ if((int)(col*sampleCol) == lastcol && (int)(row*sampleRow)==lastrow)\r
+ {\r
+ miniMe.setRGB(col,row,color);\r
+ continue;\r
+ }\r
+\r
+ lastrow = (int)(row*sampleRow);\r
+ lastcol = (int)(col*sampleCol);\r
+\r
+ if(av.alignment.getSequenceAt(lastrow).getLength()>lastcol)\r
+ {\r
+ color = sr.getResidueBoxColour(\r
+ av.alignment.getSequenceAt(lastrow), lastcol).getRGB();\r
+\r
+ if(av.showSequenceFeatures)\r
+ color = fr.findFeatureColour(color, lastrow, lastcol);\r
+\r
+ }\r
+ else\r
+ {\r
+ color = -1; //White\r
+ }\r
+\r
+ miniMe.setRGB(col,row,color);\r
+\r
+\r
+ }\r
+ }\r
+\r
+ if (av.conservation != null)\r