Skip to content

Commit

Permalink
update to 3.22a (共通部分)
Browse files Browse the repository at this point in the history
  • Loading branch information
nokotan committed Sep 28, 2020
1 parent 60ac9c0 commit 388eba1
Show file tree
Hide file tree
Showing 94 changed files with 1,647 additions and 383 deletions.
2 changes: 1 addition & 1 deletion DxASyncLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ 非同期読み込み処理プログラム
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxASyncLoad.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ 非同期読み込み処理プログラムヘッダファイル
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxArchive_.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ アーカイブ制御プログラム
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxArchive_.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ 通信プログラムヘッダファイル
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxBaseFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ 標準関数の互換関数プログラム
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxBaseFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ 標準関数の互換関数プログラムヘッダファイル
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
72 changes: 48 additions & 24 deletions DxBaseImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �a�������h���������v���O����
//
// Ver 3.21f
// Ver 3.22a
//
// ----------------------------------------------------------------------------

Expand Down Expand Up @@ -3424,6 +3424,13 @@ static int LoadBmpImage( STREAMDATA *Stream, BASEIMAGE *BaseImage, int GetFormat
Format = 888 ;
}
else
if( ( ( DWORD * )BmpInfo2->bmiColors )[ 0 ] == 0x00ff0000 &&
( ( DWORD * )BmpInfo2->bmiColors )[ 1 ] == 0x0000ff00 &&
( ( DWORD * )BmpInfo2->bmiColors )[ 2 ] == 0x000000ff )
{
Format = 1888 ;
}
else
if( ( ( DWORD * )BmpInfo2->bmiColors )[ 0 ] == 0x0000f800 &&
( ( DWORD * )BmpInfo2->bmiColors )[ 1 ] == 0x000007e0 &&
( ( DWORD * )BmpInfo2->bmiColors )[ 2 ] == 0x0000001f )
Expand All @@ -3437,10 +3444,6 @@ static int LoadBmpImage( STREAMDATA *Stream, BASEIMAGE *BaseImage, int GetFormat
{
Format = 555 ;
}
else
{
Format = 555 ;
}

if( Format != -1 )
{
Expand Down Expand Up @@ -3481,6 +3484,27 @@ static int LoadBmpImage( STREAMDATA *Stream, BASEIMAGE *BaseImage, int GetFormat
NS_CreateXRGB8ColorData( &BaseImage->ColorData ) ;
switch( Format )
{
case 1888 :
BaseImage->ColorData.ColorBitDepth = 32 ;
BaseImage->ColorData.PixelByte = 4 ;

BaseImage->ColorData.NoneLoc = 24 ;
BaseImage->ColorData.NoneMask = 0xff000000 ;
BaseImage->ColorData.NoneWidth = 8 ;

BaseImage->ColorData.RedLoc = 16 ;
BaseImage->ColorData.RedMask = 0x00ff0000 ;
BaseImage->ColorData.RedWidth = 8 ;

BaseImage->ColorData.GreenLoc = 8 ;
BaseImage->ColorData.GreenMask = 0x0000ff00 ;
BaseImage->ColorData.GreenWidth = 8 ;

BaseImage->ColorData.BlueLoc = 0 ;
BaseImage->ColorData.BlueMask = 0x000000ff ;
BaseImage->ColorData.BlueWidth = 8 ;
break ;

case 888 :
BaseImage->ColorData.ColorBitDepth = 32 ;
BaseImage->ColorData.PixelByte = 4 ;
Expand Down Expand Up @@ -6663,25 +6687,25 @@ extern int NS_GetDesktopScreenBaseImage( int x1, int y1, int x2, int y2, BASEIMA
DesktopW = DesktopRect.right - DesktopRect.left ;
DesktopH = DesktopRect.bottom - DesktopRect.top ;

// �w��̋�`�̕␳
if( x1 < DesktopRect.left )
{
DestX += DesktopRect.left - x1 ;
x1 = DesktopRect.left ;
}
if( y1 < DesktopRect.top )
{
DestY += DesktopRect.top - y1 ;
y1 = DesktopRect.top ;
}
if( x2 > DesktopRect.right )
{
x2 = DesktopRect.right ;
}
if( y2 > DesktopRect.bottom )
{
y2 = DesktopRect.bottom ;
}
// // �w��̋�`�̕␳
// if( x1 < DesktopRect.left )
// {
// DestX += DesktopRect.left - x1 ;
// x1 = DesktopRect.left ;
// }
// if( y1 < DesktopRect.top )
// {
// DestY += DesktopRect.top - y1 ;
// y1 = DesktopRect.top ;
// }
// if( x2 > DesktopRect.right )
// {
// x2 = DesktopRect.right ;
// }
// if( y2 > DesktopRect.bottom )
// {
// y2 = DesktopRect.bottom ;
// }

// ��荞�݃T�C�Y�̎Z�o
CaptureW = x2 - x1 ;
Expand Down
2 changes: 1 addition & 1 deletion DxBaseImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ BaseImageプログラムヘッダファイル
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxChar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �����R�[�h�֌W�v���O����
//
// Ver 3.21f
// Ver 3.22a
//
// ----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxChar.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �����R�[�h�֌W�v���O�����w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxCharCodeTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �L�����N�^�R�[�h�e�[�u��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxCompileConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u�����@�R���p�C���R���t�B�O�w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// ----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxDataType.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �f�[�^�^�C�v��`�w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxDataTypeAndroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� Nintendo Switch�p�f�[�^�^�C�v��`�w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxDataTypeHTML5.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// DXライブラリ HTML5用データタイプ定義ヘッダファイル
//
// Ver 3.21d
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxDataTypeWin.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� Windows�p�f�[�^�^�C�v��`�w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxDataTypeiOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� iOS�p�f�[�^�^�C�v��`�w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �t�@�C���A�N�Z�X�v���O����
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion DxFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// �c�w���C�u���� �t�@�C���A�N�Z�X�v���O�����w�b�_�t�@�C��
//
// Ver 3.21f
// Ver 3.22a
//
// -------------------------------------------------------------------------------

Expand Down
Loading

0 comments on commit 388eba1

Please sign in to comment.