cleaning of the code. speed up the engine by moving the initialization of shm into the test prog, and by commenting some XCBSync (no problem with that, apparently)

SVN revision: 22455
This commit is contained in:
doursse 2006-05-04 06:51:30 +00:00 committed by doursse
parent b0efe94cff
commit f8585f6fe2
2 changed files with 49 additions and 49 deletions

View File

@ -89,7 +89,7 @@ evas_software_xcb_outbuf_setup_x(int w,
#ifdef WORDS_BIGENDIAN
if (evas_software_xcb_x_output_buffer_byte_order(xcbob) == XCBImageOrderLSBFirst)
buf->priv.x.swap = 1;
if (evas_software_xcb_x_output_buffer_bit_order(xcbob) == XCBImageOrderLSBFirst)
if (evas_software_xcb_x_output_buffer_bit_order(xcbob) == XCBImageOrderMSBFirst)
buf->priv.x.bit_swap = 1;
#else
if (evas_software_xcb_x_output_buffer_byte_order(xcbob) == XCBImageOrderMSBFirst)
@ -1038,7 +1038,7 @@ evas_software_xcb_outbuf_perf_x(XCBConnection *conn,
mask = XCBConfigWindowStackMode;
value[0] = XCBStackModeAbove;
XCBConfigureWindow (conn, win.window, mask, value2);
/* XCBMapWindow (conn, win.window); */
XCBMapWindow (conn, win.window);
do_shm = evas_software_xcb_x_can_do_shm(conn);

View File

@ -145,14 +145,14 @@ evas_software_xcb_x_output_buffer_new(XCBConnection *c,
/* XErrorHandler ph; */
/* EventHandlers eh; */
XCBSync(c, 0);
/* XCBSync(c, 0); */
_xcb_err = 0;
/* ph = XSetErrorHandler((XErrorHandler) */
/* x_output_tmp_x_err); */
XCBShmAttach(c,
xcbob->shm_info->shmseg,
xcbob->shm_info->shmid, 0);
XCBSync(c, 0);
/* XCBSync(c, 0); */
/* XSetErrorHandler((XErrorHandler)ph); */
if (!_xcb_err)
{