Skip to content

Commit

Permalink
Astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored Feb 28, 2020
1 parent 0713ab4 commit 1423db0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wincurse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ static void create_backbuffer()
bmi.bmiHeader.biSizeImage = WindowWidth * WindowHeight * 1;
bmi.bmiHeader.biClrUsed = color_loader<RGBQUAD>::COLOR_NAMES_COUNT; // Colors in the palette
bmi.bmiHeader.biClrImportant = color_loader<RGBQUAD>::COLOR_NAMES_COUNT; // Colors in the palette
backbit = CreateDIBSection( 0, &bmi, DIB_RGB_COLORS, reinterpret_cast<void **>( &dcbits ), nullptr, 0 );
backbit = CreateDIBSection( 0, &bmi, DIB_RGB_COLORS, reinterpret_cast<void **>( &dcbits ), nullptr,
0 );
DeleteObject( SelectObject( backbuffer, backbit ) ); //load the buffer into DC
}

Expand Down Expand Up @@ -465,7 +466,7 @@ void cata_cursesport::curses_drawwindow( const catacurses::window &w )
}
if( tmp ) {
const std::wstring utf16 = widen( cell.ch );
ExtTextOutW( backbuffer, drawx, drawy, 0, nullptr, utf16.c_str(), utf16.length(), nullptr );
ExtTextOutW( backbuffer, drawx, drawy, 0, nullptr, utf16.c_str(), utf16.length(), nullptr );
}
} else {
switch( static_cast<unsigned char>( win->line[j].chars[i].ch[0] ) ) {
Expand Down

0 comments on commit 1423db0

Please sign in to comment.