summaryrefslogtreecommitdiffhomepage
path: root/Magic2/UVMapView.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Magic2/UVMapView.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'Magic2/UVMapView.cpp')
-rw-r--r--Magic2/UVMapView.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Magic2/UVMapView.cpp b/Magic2/UVMapView.cpp
index d775b5c..dbbf2de 100644
--- a/Magic2/UVMapView.cpp
+++ b/Magic2/UVMapView.cpp
@@ -73,7 +73,7 @@ UVMapView::~UVMapView()
const int BATCH_SIZE = 64;
-void
+void
UVMapView::Refresh()
{
video = Video::GetInstance();
@@ -180,7 +180,7 @@ UVMapView::UseMaterial(Material* m)
}
}
-void
+void
UVMapView::UsePolys(List<Poly>& p)
{
polys.clear();
@@ -252,7 +252,7 @@ UVMapView::End()
// get the model:
if (!nmarks || !material || !material->tex_diffuse) return;
-
+
// if not adding to selection:
if (select_mode == SELECT_REPLACE) {
Clear();
@@ -425,7 +425,7 @@ UVMapView::IsSelected(Poly* poly, WORD v)
DWORD value = (p << 16) | v;
bool contains = false;
-
+
for (auto svi = selverts.begin(); svi != selverts.end(); ++svi) {
if (*svi == value)
return true;
@@ -439,7 +439,7 @@ UVMapView::WillSelect(CPoint& p)
{
if (!material || !material->tex_diffuse)
return false;
-
+
Bitmap* bmp = material->tex_diffuse;
int w = bmp->Width();
int h = bmp->Height();