518 |
|
// Set VideoMonitor |
519 |
|
bool native_byte_order; |
520 |
|
#ifdef WORDS_BIGENDIAN |
521 |
< |
native_byte_order = (img->bitmap_bit_order == MSBFirst); |
521 |
> |
native_byte_order = (XImageByteOrder(x_display) == MSBFirst); |
522 |
|
#else |
523 |
< |
native_byte_order = (img->bitmap_bit_order == LSBFirst); |
523 |
> |
native_byte_order = (XImageByteOrder(x_display) == LSBFirst); |
524 |
|
#endif |
525 |
|
#ifdef ENABLE_VOSF |
526 |
|
do_update_framebuffer = GET_FBCOPY_FUNC(depth, native_byte_order, DISPLAY_WINDOW); |
1670 |
|
|
1671 |
|
// Window "close" widget clicked |
1672 |
|
case ClientMessage: |
1673 |
< |
if (event.xclient.format == 32 && event.xclient.data.l[0] == WM_DELETE_WINDOW) |
1674 |
< |
XBell(x_display, 0); |
1673 |
> |
if (event.xclient.format == 32 && event.xclient.data.l[0] == WM_DELETE_WINDOW) { |
1674 |
> |
ADBKeyDown(0x7f); // Power key |
1675 |
> |
ADBKeyUp(0x7f); |
1676 |
> |
} |
1677 |
|
break; |
1678 |
|
} |
1679 |
|
} |