Browse Source

Fehler beim vertikal gespiegelten zeichnen von bildern behoben

Kolja Strohm 4 years ago
parent
commit
685bda84ec
2 changed files with 7 additions and 10 deletions
  1. 4 4
      Bild.cpp
  2. 3 6
      Framework.vcxproj

+ 4 - 4
Bild.cpp

@@ -1670,8 +1670,8 @@ void Bild::drawBild180( int x, int y, int br, int hi, Bild & zBild ) // Zeichnet
     y += drawOff[ doa ].y;
     if( x + br < dpx || y + hi < dpy || x > dgx || y > dgy )
         return;
-    br = minInt( br, zBild.getHeight() );
-    hi = minInt( hi, zBild.getBreite() );
+    br = minInt( br, zBild.getBreite() );
+    hi = minInt( hi, zBild.getHeight() );
     int xst = maxInt( dpx - x, 0 );
     int yst = maxInt( dpy - y, 0 );
     int xst2 = maxInt( x, dpx );
@@ -1703,8 +1703,8 @@ void Bild::alphaBild180( int x, int y, int br, int hi, Bild & zBild )
     y += drawOff[ doa ].y;
     if( x + br < dpx || y + hi < dpy || x > dgx || y > dgy )
         return;
-    br = minInt( br, zBild.getBreite() );
-    hi = minInt( hi, zBild.getHeight() );
+    br = minInt( br, zBild.getHeight() );
+    hi = minInt( hi, zBild.getBreite() );
     int xst = maxInt( dpx - x, 0 );
     int yst = maxInt( dpy - y, 0 );
     int xst2 = maxInt( x, dpx );

+ 3 - 6
Framework.vcxproj

@@ -135,8 +135,7 @@ copy "x64\Debug\Framework.dll" "..\..\Spiele Platform\SMP\SMP\framework.dll"
 copy "x64\Debug\Framework.dll" "..\LTDBKonverter\LTDB Konverter\framework.dll"
 copy "x64\Debug\Framework.dll" "..\GSLKonverter\GSL Konverter\framework.dll"
 copy "x64\Debug\Framework.dll" "..\..\Spiele Platform\Klient\Fertig\Debug\x64\framework.dll"</Command>
-      <Outputs>
-      </Outputs>
+      <Outputs>kopieren...;%(Outputs)</Outputs>
     </CustomBuildStep>
     <Bscmake>
       <PreserveSbr>true</PreserveSbr>
@@ -165,8 +164,7 @@ copy "x64\Debug\Framework.dll" "..\..\Spiele Platform\Klient\Fertig\Debug\x64\fr
 copy "Release\Framework.dll" "..\..\Spiele Platform\SMP\Fertig\x32\framework.dll"</Command>
     </CustomBuildStep>
     <CustomBuildStep>
-      <Outputs>
-      </Outputs>
+      <Outputs>kopieren...;%(Outputs)</Outputs>
     </CustomBuildStep>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -191,8 +189,7 @@ copy "Release\Framework.dll" "..\..\Spiele Platform\SMP\Fertig\x32\framework.dll
     <CustomBuildStep>
       <Command>copy "x64\Release\Framework.dll" "..\..\Spiele Platform\Klient\Fertig\x64\framework.dll"
 copy "x64\Release\Framework.dll" "..\..\Spiele Platform\SMP\Fertig\x64\framework.dll"</Command>
-      <Outputs>
-      </Outputs>
+      <Outputs>kopieren...;%(Outputs)</Outputs>
     </CustomBuildStep>
     <Bscmake>
       <PreserveSbr>true</PreserveSbr>