*/}}
Browse Source

windows fbo fix and wacom event rate fix

YimingWu 11 months ago
parent
commit
f937314e05
2 changed files with 3 additions and 1 deletions
  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);