| 857 | |
| 858 | |
| 859 | void rvDebuggerWindow::ResizeImageList(int& widthOut, int& heightOut) |
| 860 | { |
| 861 | //mTmpImageList |
| 862 | float scaling_factor = Win_GetWindowScalingFactor(mWnd); |
| 863 | int s16 = int(16 * scaling_factor); |
| 864 | |
| 865 | TEXTMETRIC tm; |
| 866 | HDC dc; |
| 867 | dc = GetDC(mWndScript); |
| 868 | |
| 869 | GetTextMetrics(dc, &tm); |
| 870 | int height = mZoomScaleDem ? (tm.tmHeight * (float)mZoomScaleNum / (float)mZoomScaleDem) : tm.tmHeight ; |
| 871 | height *= scaling_factor; |
| 872 | int width = mZoomScaleDem ? ( tm.tmMaxCharWidth * (float)mZoomScaleNum / (float)mZoomScaleDem) : tm.tmMaxCharWidth; |
| 873 | width *= scaling_factor; |
| 874 | |
| 875 | ImageList_Destroy(mTmpImageList); |
| 876 | mTmpImageList = ImageList_Create(width, height, ILC_COLOR | ILC_MASK , 0, 2); |
| 877 | ImageList_AddIcon(mTmpImageList, (HICON)LoadImage(mInstance, MAKEINTRESOURCE(IDI_DBG_EMPTY), IMAGE_ICON, width, height, LR_DEFAULTSIZE | LR_DEFAULTCOLOR)); |
| 878 | ImageList_AddIcon(mTmpImageList, (HICON)LoadImage(mInstance, MAKEINTRESOURCE(IDI_DBG_CURRENT), IMAGE_ICON, width, height, LR_DEFAULTSIZE | LR_DEFAULTCOLOR)); |
| 879 | ImageList_AddIcon(mTmpImageList, (HICON)LoadImage(mInstance, MAKEINTRESOURCE(IDI_DBG_BREAKPOINT), IMAGE_ICON, width, height, LR_DEFAULTSIZE | LR_DEFAULTCOLOR)); |
| 880 | ImageList_AddIcon(mTmpImageList, (HICON)LoadImage(mInstance, MAKEINTRESOURCE(IDI_DBG_CURRENTLINE), IMAGE_ICON, width, height, LR_DEFAULTSIZE | LR_DEFAULTCOLOR)); |
| 881 | |
| 882 | widthOut = width; |
| 883 | heightOut = height; |
| 884 | } |
| 885 | |
| 886 | float rvDebuggerWindow::GetMarginWidth ( void ) |
| 887 | { |
no test coverage detected