Skip to content

Commit

Permalink
Fix incorrect colour padding pixel opacity.
Browse files Browse the repository at this point in the history
Add general information resource.
  • Loading branch information
VerMishelb committed Oct 24, 2022
1 parent b6653a6 commit 9554f20
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UVE_Preload_splitter/AtlasPack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ int Atlas::SaveAtlas(const std::string& path, const std::vector<AtlasEntry>& ima
image.BlitRegionTransparent(
images[i].image.GetRegion(images[i].data_start.x, images[i].data_start.y, images[i].rect.w, images[i].rect.h, false),
images[i].rect.x, images[i].rect.y - i2, images[i].rect.w, images[i].rect.h,
preload.IsFlipped()
preload.IsFlipped(), 0
);
//Down
image.BlitRegionTransparent(
images[i].image.GetRegion(images[i].data_start.x, images[i].data_start.y, images[i].rect.w, images[i].rect.h, false),
images[i].rect.x, images[i].rect.y + i2, images[i].rect.w, images[i].rect.h,
preload.IsFlipped()
preload.IsFlipped(), 0
);
//Left
image.BlitRegionTransparent(
images[i].image.GetRegion(images[i].data_start.x, images[i].data_start.y, images[i].rect.w, images[i].rect.h, false),
images[i].rect.x - i2, images[i].rect.y, images[i].rect.w, images[i].rect.h,
preload.IsFlipped()
preload.IsFlipped(), 0
);
//Right
image.BlitRegionTransparent(
images[i].image.GetRegion(images[i].data_start.x, images[i].data_start.y, images[i].rect.w, images[i].rect.h, false),
images[i].rect.x + i2, images[i].rect.y, images[i].rect.w, images[i].rect.h,
preload.IsFlipped()
preload.IsFlipped(), 0
);
}
}
Expand Down
100 changes: 100 additions & 0 deletions UVE_Preload_splitter/UVE_Preload_splitter.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Russian (Russia) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#pragma code_page(1251)

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,0,1,3
PRODUCTVERSION 2,0,1,3
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "041904b0"
BEGIN
VALUE "CompanyName", "VerMishelb"
VALUE "FileDescription", "An application for extracting and packing texture atlases from Ultra VGA Engine games."
VALUE "FileVersion", "2.0.1.3 R2"
VALUE "InternalName", "UVE_Prel.exe"
VALUE "LegalCopyright", "Copyright (C) 2022 VerMishelb"
VALUE "OriginalFilename", "UVE_Preload_splitter.exe"
VALUE "ProductName", "UVE Preload splitter"
VALUE "ProductVersion", "2.0.1.3"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x419, 1200
END
END

#endif // Russian (Russia) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

4 changes: 4 additions & 0 deletions UVE_Preload_splitter/UVE_Preload_splitter.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,12 @@
<ClInclude Include="AtlasPack.h" />
<ClInclude Include="Debug.h" />
<ClInclude Include="IniPreload.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="Targa.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="UVE_Preload_splitter.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
8 changes: 8 additions & 0 deletions UVE_Preload_splitter/UVE_Preload_splitter.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,13 @@
<ClInclude Include="Debug.h">
<Filter>Файлы заголовков</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Файлы заголовков</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="UVE_Preload_splitter.rc">
<Filter>Файлы ресурсов</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
14 changes: 14 additions & 0 deletions UVE_Preload_splitter/resource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by UVE_Preload_splitter.rc

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

0 comments on commit 9554f20

Please sign in to comment.