*/}}
浏览代码

windows fbo fix and wacom event rate fix

YimingWu 11 月之前
父节点
当前提交
f937314e05
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      la_kernel.c
  2. 1 1
      la_tns_kernel.c

+ 2 - 0
la_kernel.c

@@ -7094,6 +7094,8 @@ LRESULT CALLBACK LA_WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lp
             MAIN.EraserDeviation = MAIN.StylusDeviation; MAIN.EraserOrientation = MAIN.StylusOrientation;
             MAIN.EraserPressure = MAIN.StylusPressure;
             MAIN.IsPen = 1; MAIN.PointerIsEraser = ((pkt.pkStatus & TPS_INVERT) == TPS_INVERT);
+            point.x = pkt.pkX; point.y = pkt.pkY; ScreenToClient(hwnd, &point);
+            la_SendMouseEvent(hwnd, LA_MOUSEMOVE, point.x, point.y);
         }
         return 0; break;
 

+ 1 - 1
la_tns_kernel.c

@@ -144,7 +144,7 @@ void tnsContextMakeWindowCurrent(laWindow* w){
 }
 #else
 void tnsContextMakeFBOCurrent(tnsOffscreen* off){
-    tnsContextMakeCurrent(off->FboContext,off->FboWindow,0);
+    tnsContextMakeCurrent(off->FboContext,off->FboDC,0);
 }
 void tnsContextMakeWindowCurrent(laWindow* w){
     tnsContextMakeCurrent(w->glc,w->win,0);