Skip to content

Commit

Permalink
Alpha version 0.10.25: crash fix in aligned image creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 5, 2017
1 parent 019939a commit 0edca8c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Telegram/Resources/winrc/Telegram.rc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,10,24,0
PRODUCTVERSION 0,10,24,0
FILEVERSION 0,10,25,0
PRODUCTVERSION 0,10,25,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -51,10 +51,10 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Telegram Messenger LLP"
VALUE "FileVersion", "0.10.24.0"
VALUE "FileVersion", "0.10.25.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2016"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "0.10.24.0"
VALUE "ProductVersion", "0.10.25.0"
END
END
BLOCK "VarFileInfo"
Expand Down
8 changes: 4 additions & 4 deletions Telegram/Resources/winrc/Updater.rc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,10,24,0
PRODUCTVERSION 0,10,24,0
FILEVERSION 0,10,25,0
PRODUCTVERSION 0,10,25,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -43,10 +43,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram Messenger LLP"
VALUE "FileDescription", "Telegram Updater"
VALUE "FileVersion", "0.10.24.0"
VALUE "FileVersion", "0.10.25.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2016"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "0.10.24.0"
VALUE "ProductVersion", "0.10.25.0"
END
END
BLOCK "VarFileInfo"
Expand Down
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/core/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org

#define BETA_VERSION_MACRO (0ULL)

constexpr int AppVersion = 10024;
constexpr str_const AppVersionStr = "0.10.24";
constexpr int AppVersion = 10025;
constexpr str_const AppVersionStr = "0.10.25";
constexpr bool AppAlphaVersion = true;
constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO;
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/media/media_clip_ffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ QImage createAlignedImage(QSize size) {
auto buffer = new uchar[bytesperline * height + kAlignImageBy];
auto cleanupdata = static_cast<void*>(buffer);
auto bufferval = reinterpret_cast<uintptr_t>(buffer);
auto alignedbuffer = buffer + ((bufferval % kAlignImageBy) ? (bufferval - (bufferval % kAlignImageBy)) : 0);
auto alignedbuffer = buffer + ((bufferval % kAlignImageBy) ? (kAlignImageBy - (bufferval % kAlignImageBy)) : 0);
return QImage(alignedbuffer, width, height, bytesperline, QImage::Format_ARGB32, alignedImageBufferCleanupHandler, cleanupdata);
}

Expand Down
6 changes: 3 additions & 3 deletions Telegram/build/version
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AppVersion 10024
AppVersion 10025
AppVersionStrMajor 0.10
AppVersionStrSmall 0.10.24
AppVersionStr 0.10.24
AppVersionStrSmall 0.10.25
AppVersionStr 0.10.25
AlphaChannel 1
BetaVersion 0

0 comments on commit 0edca8c

Please sign in to comment.