Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsDeviceContextOS2.h File Reference
#include "nsGfxDefs.h"
#include "nsDeviceContext.h"
#include "nsIScreenManager.h"
#include "nsDeviceContextSpecOS2.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  nsDeviceContextOS2


int PR_CALLBACK prefChanged (const char *aPref, void *aClosure)

Function Documentation

int PR_CALLBACK prefChanged ( const char *  aPref,
void aClosure 

Definition at line 600 of file nsDeviceContextOS2.cpp.

  nsDeviceContextOS2 *context = (nsDeviceContextOS2*)aClosure;
  nsresult rv;
  if (nsCRT::strcmp(aPref, "layout.css.dpi")==0) {
    PRInt32 dpi;
    nsCOMPtr<nsIPref> prefs(do_GetService(NS_PREF_CONTRACTID, &rv));
    rv = prefs->GetIntPref(aPref, &dpi);
    if (NS_SUCCEEDED(rv))

  return 0;

Here is the call graph for this function:

Here is the caller graph for this function: