<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -113,7 +113,7 @@ typedef struct _GDI_DEVICE_CONTEXT_SHARED {
         UCHAR unk6[30];
         POINT CurrentPenPos;
         UCHAR unk7[2];
-	ULONG unk8[0x57];
+	ULONG unk8[0x4b];
 	POINT WindowOriginOffset;	/* 0x174 */
 	ULONG unk9[8];
 } GDI_DEVICE_CONTEXT_SHARED;</diff>
      <filename>include/common/ntgdi.h</filename>
    </modified>
    <modified>
      <diff>@@ -754,8 +754,9 @@ BOOL device_context_t::lineto(INT x, INT y)
 		return FALSE;
 
 	POINT&amp; cur = get_current_pen_pos();
+	POINT&amp; winofs = get_window_offset();
 
-	bm-&gt;line(cur.x, cur.y, x, y, pen);
+	bm-&gt;line(cur.x + winofs.x, cur.y + winofs.y, x + winofs.x, y + winofs.y, pen);
 
 	// update the position
 	cur.x = x;
@@ -1016,6 +1017,13 @@ POINT&amp; device_context_t::get_current_pen_pos()
 	return dcshm-&gt;CurrentPenPos;
 }
 
+POINT&amp; device_context_t::get_window_offset()
+{
+	GDI_DEVICE_CONTEXT_SHARED *dcshm = get_dc_shared_mem();
+	assert(dcshm != NULL);
+	return dcshm-&gt;WindowOriginOffset;
+}
+
 device_context_t* dc_from_handle( HGDIOBJ handle )
 {
 	gdi_handle_table_entry *entry = get_handle_table_entry( handle );</diff>
      <filename>kernel/ntgdi.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -231,6 +231,7 @@ public:
 	virtual bitmap_t* get_bitmap();
         virtual pen_t* get_selected_pen();
 	POINT&amp; get_current_pen_pos();
+	POINT&amp; get_window_offset();
 	void set_bounds_rect( RECT&amp; r ) {BoundsRect = r;}
 	RECT&amp; get_bounds_rect() {return BoundsRect;}
 	int save_dc();</diff>
      <filename>kernel/win32mgr.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f3219ce018959c093a3323a1a9489f547be970e2</id>
    </parent>
  </parents>
  <author>
    <name>Mike McCormack</name>
    <email>mikem@ring3k.org</email>
  </author>
  <url>http://github.com/mikemccormack/ring3k/commit/3da7386ca8ea778cc204a0301e13e4bc593b4d52</url>
  <id>3da7386ca8ea778cc204a0301e13e4bc593b4d52</id>
  <committed-date>2009-08-11T03:09:39-07:00</committed-date>
  <authored-date>2009-08-11T03:09:39-07:00</authored-date>
  <message>Use the window offset in lineto.

With this change, the shadow clock face is visible.</message>
  <tree>528340aac0d52aa1ceef8ea2d65bfd8fd4de6cf4</tree>
  <committer>
    <name>Mike McCormack</name>
    <email>mikem@ring3k.org</email>
  </committer>
</commit>
