diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-01 00:26:03 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-01 02:33:22 +0200 |
commit | 37555c895319cef08e652dfe259ec50696def779 (patch) | |
tree | 212f077e96d69dfbbbaab987ce34b347caf398d5 /chart2/source/view/main | |
parent | 1e1c793ab4db7221d4c7591ddba8b998fdeade7c (diff) |
remove unused code
actually I don't want to see the BMP code ever again!!
Change-Id: Ia5be607399238e7e71399d109b2cfbfa889e29d1
Diffstat (limited to 'chart2/source/view/main')
-rw-r--r-- | chart2/source/view/main/GL3DRenderer.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx index b25f4a34eb41..e89ff49fa19f 100644 --- a/chart2/source/view/main/GL3DRenderer.cxx +++ b/chart2/source/view/main/GL3DRenderer.cxx @@ -1314,22 +1314,7 @@ int OpenGL3DRenderer::ProcessExtrude3DPickingBox() //read pixel to get the index Point select = Point(m_aMPos.X(), m_aMPos.Y()); sal_uInt8 selectColor[4] = {0}; -#if 0 - int picWidth = m_iWidth - select.X(); - int picHeight = m_iHeight - select.Y(); - picWidth = (picWidth - 1) & ~3; - picHeight = (picHeight - 1) & ~3; - sal_uInt8 *outBuf = (sal_uInt8 *)malloc(picWidth * picHeight * 3 + BMP_HEADER_LEN); - CreateBMPHeader(outBuf, picWidth, picHeight); - cout << "picWidth = " << picWidth << ", picHeight = " << picHeight << endl; - glReadPixels(select.X(), select.Y(), picWidth, picHeight, GL_RGB, GL_UNSIGNED_BYTE, outBuf + BMP_HEADER_LEN); - char fileName[256] = {0}; - sprintf(fileName, "D:\\boundbox.bmp"); - FILE *pfile = fopen(fileName,"wb"); - fwrite(outBuf, picWidth * picHeight * 3 + BMP_HEADER_LEN, 1, pfile); - fclose(pfile); - cout << "select.x = " << select.X() << ", select.y = " << select.Y() << ", width = " << m_iWidth << ", height = " << m_iHeight << endl; -#endif + glReadPixels(select.X(), select.Y(), 1, 1, GL_RGB, GL_UNSIGNED_BYTE, selectColor); int selectID = GetIndexByColor(selectColor[0], selectColor[1], selectColor[2]); // printf("selectColor[0] = %d, selectColor[1] = %d, selectColor[2] = %d, selectID = %d\n", selectColor[0], selectColor[1], selectColor[2], selectID); |