Przeglądaj źródła

fixed some accuracy issues

naelstrof 10 lat temu
rodzic
commit
12f2559b50
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      main.cpp

+ 2
- 2
main.cpp Wyświetl plik

@@ -152,8 +152,8 @@ int main( int argc, char** argv ) {
152 152
                     // We pull the dimensions and positions from the selection rectangle.
153 153
                     // The selection rectangle automatically converts the positions and
154 154
                     // dimensions to absolute coordinates when we set them earilier.
155
-                    x = selection->m_x+selection->m_xoffset;
156
-                    y = selection->m_y+selection->m_yoffset;
155
+                    x = selection->m_x+selection->m_xoffset+borderSize;
156
+                    y = selection->m_y+selection->m_yoffset+borderSize;
157 157
                     w = selection->m_width;
158 158
                     h = selection->m_height;
159 159
                     // Delete the rectangle.