Hi guys,
I added the resolution 1920x1080 to my source, the windows opens correctly as 1920x1080 but the taskbar is the one with 1680x1050. I guess something with my resdata.inc is wrong, but couldn't find the issue.
HwOption.cpp
Neuz.cpp
WndTaskbar.cpp
Resdata.inc
Resdata.h
I think he reads in the wrong Applet defined in the resdata.inc, maybe because the ID in resdata.h is wrong. But I dont know how to find out the correct number if thats the issue. I expect that if I have the resolution "1920x1080" in my neuz.ini, then he should go for the APP_Taskbar1920.
I added the resolution 1920x1080 to my source, the windows opens correctly as 1920x1080 but the taskbar is the one with 1680x1050. I guess something with my resdata.inc is wrong, but couldn't find the issue.
HwOption.cpp
Code:
.. case 1680: //1680x1050 (WIDE)
if (m_nResHeight != 1050)
{
Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
m_nResHeight = 1050;
}
break;
case 1920: // 1920x1080 (WIDE)
if (m_nResHeight != 1080)
{
Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
m_nResHeight = 1080;
}
break;
case 1900: // 1900x1000 (WIDE)
if (m_nResHeight != 1000)
{
Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
m_nResHeight = 1000;
}
break;
default:
Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
m_nResWidth = 800;
m_nResHeight = 600;
break;
}
}
//SAFE_RELEASE( pD3D9 );
pD3D9->Release();
}
Neuz.cpp
Code:
else if (g_Option.m_nResWidth == 1920 && g_Option.m_nResHeight == 1080)
{
m_TexLoading.m_size = CSize(1920, FULLSCREEN_HEIGHT);
wideOffsetX = (g_Option.m_nResWidth - 1920) / 2;
m_2DRender.RenderFillRect(CRect(0, 0, g_Option.m_nResWidth, g_Option.m_nResHeight), 0xff000000);
}
else if (g_Option.m_nResWidth == 1900 && g_Option.m_nResHeight == 1000)
{
m_TexLoading.m_size = CSize(1900, FULLSCREEN_HEIGHT);
wideOffsetX = (g_Option.m_nResWidth - 1900) / 2;
m_2DRender.RenderFillRect(CRect(0, 0, g_Option.m_nResWidth, g_Option.m_nResHeight), 0xff000000);
}
WndTaskbar.cpp
Code:
else if (g_Option.m_nResWidth == 1920)
{
m_nMaxSlotApplet = MAX_SLOT_APPLET;
bResult = CWndNeuz::InitDialog(g_Neuz.GetSafeHwnd(), APP_TASKBAR1920, WBS_MANAGER | WBS_SOUND, CPoint(0, 0), pWndParent);
}
else if (g_Option.m_nResWidth == 1900)
{
m_nMaxSlotApplet = MAX_SLOT_APPLET;
bResult = CWndNeuz::InitDialog(g_Neuz.GetSafeHwnd(), APP_TASKBAR1900, WBS_MANAGER | WBS_SOUND, CPoint(0, 0), pWndParent);
}
#endif //__CSC_VER9_RESOLUTION
DelWndStyle(WBS_MOVE);
return bResult;
}
Resdata.inc
Code:
APP_TASKBAR1920 "WndTaskBar1920Wide.bmp" "" 0 1920 48 0x610000 26
{
// Title String
IDS_RESDATA_INC_004864
}
{
// Help Key
IDS_RESDATA_INC_004865
}
{
WTYPE_BUTTON WIDC_BUTTON1 "ButtStart.bmp" 0 26 14 90 34 0x220010 0 0 0 0
{
// Title String
IDS_RESDATA_INC_004890
}
{
// ToolTip
IDS_RESDATA_INC_004891
}
WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 106 10 682 42 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_004892
}
{
// ToolTip
IDS_RESDATA_INC_004893
}
WTYPE_CUSTOM WIDC_CUSTOM2 "" 0 702 10 992 42 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_004894
}
{
// ToolTip
IDS_RESDATA_INC_004895
}
WTYPE_BUTTON WIDC_UP "ButtQuickListUp.tga" 0 1000 8 1014 20 0x220010 0 0 0 0
{
// Title String
IDS_RESDATA_INC_004896
}
{
// ToolTip
IDS_RESDATA_INC_004897
}
WTYPE_BUTTON WIDC_DOWN "ButtQuickListDn.tga" 0 1000 32 1014 44 0x220010 0 0 0 0
{
// Title String
IDS_RESDATA_INC_004898
}
{
// ToolTip
IDS_RESDATA_INC_004899
}
WTYPE_CUSTOM WIDC_CUSTOM3 "" 0 1054 10 1194 42 0x260000 0 0 0 0
{
// Title String
IDS_RESDATA_INC_004900
}
{
// ToolTip
IDS_RESDATA_INC_004901
}
}
Resdata.h
Code:
#define APP_TASKBAR1024 2013
#define APP_TASKBAR1280 2014
#define APP_TASKBAR1360W 655
#define APP_TASKBAR1400 662
#define APP_TASKBAR1440W 663
#define APP_TASKBAR1600 653
#define APP_TASKBAR1680W 657
#define APP_TASKBAR1920 2022
#define APP_TASKBAR800 2012
I think he reads in the wrong Applet defined in the resdata.inc, maybe because the ID in resdata.h is wrong. But I dont know how to find out the correct number if thats the issue. I expect that if I have the resolution "1920x1080" in my neuz.ini, then he should go for the APP_Taskbar1920.