*/}}
Преглед на файлове

windows fbo fix and wacom event rate fix

YimingWu преди 4 месеца
родител
ревизия
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);