diff options
author | archshift <admin@archshift.com> | 2014-05-20 00:21:55 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-05-20 00:21:55 +0200 |
commit | 034e3aabc81219ca3804bfa6483d6667c3ab5679 (patch) | |
tree | 1e4745afa663a04ff53044d8333a8519314c775a /src/video_core/utils.cpp | |
parent | CMakeLists: rename HEADS, improved comments (diff) | |
download | yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.tar yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.tar.gz yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.tar.bz2 yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.tar.lz yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.tar.xz yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.tar.zst yuzu-034e3aabc81219ca3804bfa6483d6667c3ab5679.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/utils.cpp b/src/video_core/utils.cpp index a90fc183b..b94376ac1 100644 --- a/src/video_core/utils.cpp +++ b/src/video_core/utils.cpp @@ -20,13 +20,13 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) { TGAHeader hdr; FILE* fout; u8 r, g, b; - + memset(&hdr, 0, sizeof(hdr)); hdr.datatypecode = 2; // uncompressed RGB hdr.bitsperpixel = 24; // 24 bpp hdr.width = width; hdr.height = height; - + fout = fopen(filename.c_str(), "wb"); fwrite(&hdr, sizeof(TGAHeader), 1, fout); for (int i = 0; i < height; i++) { @@ -41,4 +41,4 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) { } fclose(fout); } -} // namespace
\ No newline at end of file +} // namespace |