Changeset 185 for trunk/src/plugins


Ignore:
Timestamp:
Sep 14, 2009, 8:01:23 PM (16 years ago)
Author:
lpino
Message:
Location:
trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library/swt.c

    r180 r185  
    16021602
    16031603}
     1604JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_pm_OS_WinQueryUpdateRect
     1605        (JNIEnv *env, jclass that, jint hwnd, jobject prcl)
     1606{
     1607    DECL_GLOB(pGlob)
     1608    RECTL c_rcl, *c_prcl = NULL;
     1609    jboolean rc;
     1610
     1611    DEBUG_CALL("WinQueryUpdateRect\n")
     1612
     1613    if (prcl) c_prcl = getRECTLFields(env, prcl, &c_rcl, &PGLOB(RECTLFc));
     1614
     1615    rc = (jboolean)WinQueryUpdateRect((HWND)hwnd, c_prcl);
     1616
     1617    if (prcl) setRECTLFields(env, prcl, c_prcl, &PGLOB(RECTLFc));
     1618
     1619    return rc;
     1620}
     1621
    16041622JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_pm_OS_PrfQueryProfileSize
    16051623        (JNIEnv *env, jclass that, jint hini, jobject pszApp, jobject pszKey,
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java

    r182 r185  
    649649   
    650650    /* return code to indicate type of region for GpiCombineRegion and others */
    651 //    public static final int RGN_ERROR =     0;
     651    public static final int RGN_ERROR =     0;
    652652    public static final int RGN_NULL =      1;
    653 //    public static final int RGN_RECT =      2;
     653    public static final int RGN_RECT =      2;
    654654    public static final int RGN_COMPLEX =   3;
    655655
     
    24012401public static final native int WinQueryCapture(int hwndDeskTop);
    24022402public static final native boolean WinSetActiveWindow(int hwndDeskTop, int hwnd);
     2403public static final native boolean WinQueryUpdateRect(int hwnd, RECTL prclPrc);
    24032404public static final native boolean PrfQueryProfileSize (int hini, PSZ pszApp,
    24042405    PSZ pszKey, int[] pulDataLen);
Note: See TracChangeset for help on using the changeset viewer.